mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-31 17:50:26 +08:00
Fix a couple of conversion warnings in shared nczarr/ncdump test
This commit is contained in:
parent
f266313cb7
commit
a7552b4b83
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user