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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.131 by greg, Thu Jan 23 22:03:08 2025 UTC vs.
Revision 2.132 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 154 | Line 154 | setambient(void)                               /* initialize calculation */
154                  if (flen != lastpos) {
155                          sprintf(errmsg,
156                          "ignoring last %ld values in ambient file (corrupted)",
157 <                                        (flen - lastpos)/AMBVALSIZ);
157 >                                        (long)((flen - lastpos)/AMBVALSIZ));
158                          error(WARNING, errmsg);
159                          fseeko(ambfp, lastpos, SEEK_SET);
160                          ftruncate(fileno(ambfp), lastpos);
# Line 861 | Line 861 | ambsync(void)                  /* synchronize ambient file */
861                          if (!readambval(&avs, ambinp)) {
862                                  sprintf(errmsg,
863                          "ambient file \"%s\" corrupted near character %ld",
864 <                                                ambfile, flen - n);
864 >                                                ambfile, (long)(flen - n));
865                                  error(WARNING, errmsg);
866                                  break;
867                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines