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

Comparing ray/src/cv/mgflib/lookup.c (file contents):
Revision 1.4 by greg, Sat Jun 25 16:33:07 1994 UTC vs.
Revision 1.5 by greg, Tue Apr 11 13:33:27 1995 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines