ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/common/data.c
(Generate patch)

Comparing ray/src/common/data.c (file contents):
Revision 2.5 by greg, Sat Jun 7 05:09:45 2025 UTC vs.
Revision 2.6 by greg, Wed Dec 17 18:55:28 2025 UTC

# Line 340 | Line 340 | getspec(               /* load hyperspectral image as data */
340                  error(WARNING, errmsg);
341          }
342   #endif
343 <        if ((pp->arr.s = (uby8 *)malloc(i)) == NULL)
343 >        if ((pp->arr.s = (COLRV *)malloc(sizeof(COLRV)*i)) == NULL)
344                  goto memerr;
345          for (y = ns; y-- > 0; )                 /* read each scanline */
346                  if (freadscolrs(pp->arr.s + y*sl*(si.nc+1), si.nc, sl, fp) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)