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

Comparing ray/src/util/cmatrix.h (file contents):
Revision 2.7 by greg, Mon May 4 20:53:21 2015 UTC vs.
Revision 2.8 by greg, Wed Oct 31 22:19:57 2018 UTC

# Line 8 | Line 8
8   #ifndef _RAD_CMATRIX_H_
9   #define _RAD_CMATRIX_H_
10  
11 + #include  <sys/types.h>
12   #include "color.h"
13  
14   #ifdef __cplusplus
# Line 28 | Line 29 | typedef struct {
29  
30   #define COLSPEC (sizeof(COLORV)==sizeof(float) ? "%f %f %f" : "%lf %lf %lf")
31  
32 < #define cm_lval(cm,r,c) ((cm)->cmem + 3*((r)*(cm)->ncols + (c)))
32 > #define cm_lval(cm,r,c) ((cm)->cmem + 3*((size_t)(r)*(cm)->ncols + (c)))
33  
34   #define cv_lval(cm,i)   ((cm)->cmem + 3*(i))
35  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines