Skip to content

Commit

Permalink
BUG: change datatype for counters, related to #537
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Apr 22, 2021
1 parent 455bb6b commit 0eaac2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/clib/xtg/grd3d_scan_roffbinary.c
Original file line number Diff line number Diff line change
@@ -110,7 +110,8 @@ _scan_roff_bin_record(FILE *fc,
*/

/* int swap = 0; */
int ndat, nrec, i, n, ic;
int nrec, ndat;
int i, n, ic;
int bsize = 0;
const int FAIL = -88;
char tmpname[ROFFSTRLEN] = "";
@@ -296,7 +297,7 @@ _scan_roff_bin_record(FILE *fc,
ncum += _roffbinstring(fc, cname[nrec]);
}
} else {
ncum += bsize * ndat;
ncum += (long)bsize * (long)ndat;
if (fseek(fc, ncum, SEEK_SET) != 0)
return FAIL;
}

0 comments on commit 0eaac2e

Please sign in to comment.