Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Feb 19, 2024
1 parent 4f3da19 commit 54f385b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/grib_nearest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ int grib_nearest_find_generic(
double lat1 = 0, lat2 = 0; /* inlat will be between these */
const double LAT_DELTA = 10.0; /* in degrees */

*out_lons_count = nvalues; /* Maybe overestimate but safe */
*out_lats_count = nvalues;
*out_lons_count = (int)nvalues; /* Maybe overestimate but safe */
*out_lats_count = (int)nvalues;

if (*out_lats)
grib_context_free(nearest->context, *out_lats);
Expand Down
2 changes: 1 addition & 1 deletion src/grib_trie_with_rank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ int grib_trie_with_rank_insert(grib_trie_with_rank* t, const char* key, void* da
grib_oarray_push(t->context, t->objs, data);
/* grib_trie_with_rank_insert_in_list(t,data); */
GRIB_MUTEX_UNLOCK(&mutex);
return t->objs->n;
return (int)t->objs->n;
}

/*
Expand Down

0 comments on commit 54f385b

Please sign in to comment.