mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
miss another typecast
This commit is contained in:
parent
ab2dbc0d84
commit
547b7405e7
@ -723,7 +723,7 @@ NC_check_vlens(NC3_INFO *ncp)
|
|||||||
return NC_NOERR;
|
return NC_NOERR;
|
||||||
|
|
||||||
if (fIsSet(ncp->flags,NC_64BIT_DATA)) /* CDF-5 */
|
if (fIsSet(ncp->flags,NC_64BIT_DATA)) /* CDF-5 */
|
||||||
vlen_max = (size_t)X_INT64_MAX - 3; /* "- 3" handles rounded-up size */
|
vlen_max = X_INT64_MAX - 3; /* "- 3" handles rounded-up size */
|
||||||
else if (fIsSet(ncp->flags,NC_64BIT_OFFSET) && sizeof(off_t) > 4)
|
else if (fIsSet(ncp->flags,NC_64BIT_OFFSET) && sizeof(off_t) > 4)
|
||||||
/* CDF2 format and LFS */
|
/* CDF2 format and LFS */
|
||||||
vlen_max = X_UINT_MAX - 3; /* "- 3" handles rounded-up size */
|
vlen_max = X_UINT_MAX - 3; /* "- 3" handles rounded-up size */
|
||||||
|
Loading…
Reference in New Issue
Block a user