Skip to content

Commit

Permalink
Fixed computation of recsize for NC_64BIT_DATA files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pastewka committed Aug 9, 2017
1 parent a6e3f57 commit bd33076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsrc/v1hpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,8 @@ NC_computeshapes(NC3_INFO* ncp)
if(first_rec == NULL)
first_rec = *vpp;
if((*vpp)->len == UINT32_MAX &&
fIsSet(ncp->flags, NC_64BIT_OFFSET)) /* Flag for large last record */
(fIsSet(ncp->flags, NC_64BIT_OFFSET) ||
fIsSet(ncp->flags, NC_64BIT_DATA))) /* Flag for large last record */
ncp->recsize += (*vpp)->dsizes[0] * (*vpp)->xsz;
else
ncp->recsize += (*vpp)->len;
Expand Down

0 comments on commit bd33076

Please sign in to comment.