Cast to correct type in assignment

This commit is contained in:
Peter Hill 2023-12-11 14:08:55 +00:00
parent 3134af3ce7
commit 47d1b68599
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -357,8 +357,7 @@ genbin_deftype(Symbol* tsym)
int dimsizes[NC_MAX_VAR_DIMS]; /* int because inside compound */
/* Generate the field dimension constants*/
for(j=0;j<efield->typ.dimset.ndims;j++) {
unsigned int size = efield->typ.dimset.dimsyms[j]->dim.declsize;
dimsizes[j] = size;
dimsizes[j] = (int)efield->typ.dimset.dimsyms[j]->dim.declsize;
}
stat = nc_insert_array_compound(
tsym->container->nc_id,