mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
Added the fix suggested by @mathstuf in support of https://github.com/unidata/netcdf-c/issues/845
This commit is contained in:
parent
f9b7f1d452
commit
9e926410ee
@ -178,7 +178,7 @@ dup_NC_var(const NC_var *rvarp)
|
||||
(void) memcpy(varp->shape, rvarp->shape,
|
||||
rvarp->ndims * sizeof(size_t));
|
||||
(void) memcpy(varp->dsizes, rvarp->dsizes,
|
||||
rvarp->ndims * sizeof(size_t));
|
||||
rvarp->ndims * sizeof(off_t));
|
||||
varp->xsz = rvarp->xsz;
|
||||
varp->len = rvarp->len;
|
||||
varp->begin = rvarp->begin;
|
||||
@ -499,7 +499,7 @@ out :
|
||||
varp->len = product * varp->xsz;
|
||||
if (varp->len % 4 > 0)
|
||||
varp->len += 4 - varp->len % 4; /* round up */
|
||||
|
||||
|
||||
#if 0
|
||||
arrayp("\tshape", varp->ndims, varp->shape);
|
||||
arrayp("\tdsizes", varp->ndims, varp->dsizes);
|
||||
@ -864,4 +864,3 @@ NC3_def_var_fill(int ncid,
|
||||
|
||||
return NC_NOERR;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user