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

Comparing ray/src/common/readoct.c (file contents):
Revision 1.8 by greg, Thu Sep 6 23:32:45 1990 UTC vs.
Revision 1.11 by greg, Thu Feb 7 11:00:42 1991 UTC

# Line 37 | Line 37 | int  load;
37   CUBE  *scene;
38   char  *ofn[];
39   {
40 <        char  sbuf[128];
40 >        char  sbuf[512];
41          int  nf;
42          OBJECT  fnobjects;
43          register int  i;
# Line 104 | Line 104 | char  *ofn[];
104          if (load & IO_SCENE) {
105                                          /* check object count */
106                  if (nobjects != objorig+fnobjects)
107 <                        octerror(USER, "bad object count -- stale octree?");
107 >                        octerror(USER, "bad object count; octree stale?");
108                                          /* check for non-surfaces */
109                  if (nonsurfinset(objorig, fnobjects))
110 <                        octerror(USER, "non-surface in set -- stale octree?");
110 >                        octerror(USER, "non-surface in set; octree stale?");
111          }
112          return(nf);
113   }
# Line 173 | Line 173 | getflt()                       /* get a floating point number */
173          double  d;
174  
175          d = (double)getint(4)/0x7fffffff;
176 <        return(ldexp(d, getint(1)));
176 >        return(ldexp(d, (int)getint(1)));
177   }
178          
179  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines