ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rc2.c
(Generate patch)

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.21 by greg, Fri Sep 16 05:06:07 2016 UTC vs.
Revision 2.22 by greg, Tue Feb 7 16:48:14 2017 UTC

# Line 519 | Line 519 | myseeko(const LUENT *e, void *p)
519          off_t           nbytes = *(off_t *)p;
520          
521          if (sop->reclen > 1)
522 <                nbytes = nbytes * sop->reclen;
522 >                nbytes *= (off_t)sop->reclen;
523          if (fseeko(sop->ofp, nbytes, SEEK_CUR) < 0) {
524                  sprintf(errmsg, "seek error on file '%s'", e->key);
525                  error(SYSTEM, errmsg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines