From 805e2aa75ebcee007ec3eff11deff12367d329c5 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 16 Jun 2022 22:56:09 +0100 Subject: [PATCH] Fix metabuilder compilation --- src/grib_templates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grib_templates.c b/src/grib_templates.c index 7252c5999..b179dd987 100644 --- a/src/grib_templates.c +++ b/src/grib_templates.c @@ -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) {