Fix a couple of conversion warnings in shared nczarr/ncdump test

This commit is contained in:
Peter Hill 2024-01-15 13:57:22 +00:00
parent f266313cb7
commit a7552b4b83
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -109,7 +109,7 @@ main(int argc, char **argv)
/* Fill in the data */
if(option_unlimited) {
int nvals = UNLIM_SIZE * dim_lens[0];
size_t nvals = UNLIM_SIZE * dim_lens[0];
size_t start[2] = {0,0};
size_t count[2];
for(i=0;i<nvals;i++) {
@ -126,7 +126,7 @@ main(int argc, char **argv)
}
/* fvar is unchanged */
for(i=0; i < NVALS; i++) {
fvar_data[i] = NVALS - i;
fvar_data[i] = (float)(NVALS - i);
}
if (nc_put_var(ncid, fvarid, fvar_data)) LERR;