Skip to content

Commit

Permalink
Fix a couple of conversion warnings in shared nczarr/ncdump test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Jan 15, 2024
1 parent f266313 commit a7552b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ncdump/tst_chunking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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;

Expand Down

0 comments on commit a7552b4

Please sign in to comment.