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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.69 by greg, Thu Mar 3 22:38:34 2016 UTC vs.
Revision 2.71 by greg, Tue Feb 13 20:27:19 2018 UTC

# Line 162 | Line 162 | rtrace(                                /* trace rays from file */
162                  if (d == 0.0) {                         /* zero ==> flush */
163                          if (--nextflush <= 0 || !vcount) {
164                                  if (nproc > 1 && ray_fifo_flush() < 0)
165 <                                        error(USER, "lost children");
165 >                                        error(USER, "child(ren) died");
166                                  bogusray();
167                                  fflush(stdout);
168                                  nextflush = (vresolu > 0) & (hresolu > 1) ? 0 :
# Line 174 | Line 174 | rtrace(                                /* trace rays from file */
174                                                          /* flush if time */
175                          if (!--nextflush) {
176                                  if (nproc > 1 && ray_fifo_flush() < 0)
177 <                                        error(USER, "lost children");
177 >                                        error(USER, "child(ren) died");
178                                  fflush(stdout);
179                                  nextflush = hresolu;
180                          }
# Line 410 | Line 410 | getvec(                /* get a vector from fp */
410                  }
411                  break;
412          case 'f':                                       /* binary float */
413 <                if (getbinary((char *)vf, sizeof(float), 3, fp) != 3)
413 >                if (getbinary(vf, sizeof(float), 3, fp) != 3)
414                          return(-1);
415                  VCOPY(vec, vf);
416                  break;
417          case 'd':                                       /* binary double */
418 <                if (getbinary((char *)vd, sizeof(double), 3, fp) != 3)
418 >                if (getbinary(vd, sizeof(double), 3, fp) != 3)
419                          return(-1);
420                  VCOPY(vec, vd);
421                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines