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

Comparing ray/src/common/lookup.c (file contents):
Revision 2.1 by greg, Wed Jul 6 15:14:15 1994 UTC vs.
Revision 2.2 by greg, Tue Apr 11 13:33:37 1995 UTC

# Line 48 | Line 48 | register char  *s;
48          register long   h = 0;
49  
50          while (*s)
51 <                h ^= (long)(*s++ & 0xff) << (i++ & 15);
51 >                h ^= (long)(*s++ & 0xff) << (i++ & 0xf);
52          return(h);
53   }
54  
# Line 79 | Line 79 | tryagain:
79          oldtabl = tbl->tabl;
80          ndx = tbl->tsiz;
81          i = tbl->ndel;
82 <        if (!lu_init(tbl, ndx-i)) {     /* no more memory! */
82 >        if (!lu_init(tbl, ndx-i+1)) {   /* no more memory! */
83                  tbl->tabl = oldtabl;
84                  tbl->tsiz = ndx;
85                  tbl->ndel = i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines