Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Mar 6, 2024
1 parent 79f51dd commit 2aba61b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fortran/grib_fortran.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,12 +2103,13 @@ int grib_f_index_get_string_(int* index_id, char* key, char* val, int *eachsize,
/*****************************************************************************/
int grib_f_index_get_long_(int* index_id, char* key, long *val, int* size, int len)
{
int err = 0;
grib_index* h = get_index(*index_id);
char buf[1024];
size_t lsize = *size;

if (!h) return GRIB_INVALID_GRIB;
int err = grib_index_get_long(h, cast_char(buf,key,len), val, &lsize);
err = grib_index_get_long(h, cast_char(buf,key,len), val, &lsize);
*size = lsize;
return err;
}
Expand Down Expand Up @@ -2138,12 +2139,13 @@ int grib_f_index_get_int_(int* index_id, char* key, int *val, int* size, int len
/*****************************************************************************/
int grib_f_index_get_real8_(int* index_id, char* key, double *val, int* size, int len)
{
int err = 0;
grib_index* h = get_index(*index_id);
char buf[1024];
size_t lsize = *size;

if (!h) return GRIB_INVALID_GRIB;
int err = grib_index_get_double(h, cast_char(buf,key,len), val, &lsize);
err = grib_index_get_double(h, cast_char(buf,key,len), val, &lsize);
*size = lsize;
return err;
}
Expand Down

0 comments on commit 2aba61b

Please sign in to comment.