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

Comparing ray/src/px/pfilt.c (file contents):
Revision 2.25 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.26 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 490 | Line 490 | scan2init()                    /* prepare scanline arrays */
490          if (obarsize > 0) {
491                  scoutbar = (COLOR **)malloc(obarsize*sizeof(COLOR *));
492                  greybar = (float **)malloc(obarsize*sizeof(float *));
493 <                if (scoutbar == NULL | greybar == NULL)
493 >                if ((scoutbar == NULL) | (greybar == NULL))
494                          goto memerr;
495                  for (i = 0; i < obarsize; i++) {
496                          scoutbar[i] = (COLOR *)malloc(ncols*sizeof(COLOR));
497                          greybar[i] = (float *)malloc(ncols*sizeof(float));
498 <                        if (scoutbar[i] == NULL | greybar[i] == NULL)
498 >                        if ((scoutbar[i] == NULL) | (greybar[i] == NULL))
499                                  goto memerr;
500                  }
501          } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines