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

Comparing ray/src/common/colrops.c (file contents):
Revision 2.11 by schorsch, Wed Jul 30 10:11:06 2003 UTC vs.
Revision 2.12 by greg, Fri May 20 02:06:38 2011 UTC

# Line 16 | Line 16 | static const char      RCSid[] = "$Id$";
16  
17   #define MAXGSHIFT       31              /* maximum shift for gamma table */
18  
19 < static BYTE     *g_mant = NULL, *g_nexp = NULL;
19 > static uby8     *g_mant = NULL, *g_nexp = NULL;
20  
21 < static BYTE     (*g_bval)[256] = NULL;
21 > static uby8     (*g_bval)[256] = NULL;
22  
23  
24   int
# Line 30 | Line 30 | double a2;
30          register int    i, j;
31                                          /* allocate tables */
32          if (g_bval == NULL && (g_bval =
33 <                        (BYTE (*)[256])bmalloc((MAXGSHIFT+1)*256)) == NULL)
33 >                        (uby8 (*)[256])bmalloc((MAXGSHIFT+1)*256)) == NULL)
34                  return(-1);
35                                          /* compute colr -> gamb mapping */
36          mult = 1.0/256.0;
# Line 51 | Line 51 | double a2;
51          double  mult;
52          register int    i, j;
53                                          /* allocate tables */
54 <        if (g_mant == NULL && (g_mant = (BYTE *)bmalloc(256)) == NULL)
54 >        if (g_mant == NULL && (g_mant = (uby8 *)bmalloc(256)) == NULL)
55                  return(-1);
56 <        if (g_nexp == NULL && (g_nexp = (BYTE *)bmalloc(256)) == NULL)
56 >        if (g_nexp == NULL && (g_nexp = (uby8 *)bmalloc(256)) == NULL)
57                  return(-1);
58                                          /* compute gamb -> colr mapping */
59          i = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines