Fix metabuilder compilation

This commit is contained in:
Shahram Najm 2022-06-16 22:56:09 +01:00
parent 1e456b745f
commit 805e2aa75e
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ static grib_handle* try_product_template(grib_context* c, ProductKind product_ki
char* mesg = NULL;
size_t size = 0;
off_t offset = 0;
mesg = wmo_read_any_from_file_malloc(f, 0, &size, &offset, &err);
mesg = (char*)wmo_read_any_from_file_malloc(f, 0, &size, &offset, &err);
if (mesg && !err) {
Assert(size > 4);
if (strncmp(mesg, "GRIB", 4) == 0 || strncmp(mesg, "DIAG", 4) == 0 || strncmp(mesg, "BUDG", 4) == 0) {