ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rmatrix.h
(Generate patch)

Comparing ray/src/util/rmatrix.h (file contents):
Revision 2.8 by greg, Mon Aug 28 15:59:46 2017 UTC vs.
Revision 2.9 by greg, Wed Oct 31 22:19:57 2018 UTC

# Line 20 | Line 20 | typedef struct {
20          double  mtx[1];                 /* extends struct */
21   } RMATRIX;
22  
23 < #define rmx_lval(rm,r,c,i)      (rm)->mtx[(i)+(rm)->ncomp*((c)+(rm)->ncols*(r))]
23 > #define rmx_lval(rm,r,c,i)      (rm)->mtx[(i)+(rm)->ncomp*((c)+(size_t)(rm)->ncols*(r))]
24  
25   /* Allocate a nr x nc matrix with n components */
26   extern RMATRIX  *rmx_alloc(int nr, int nc, int n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines