--- ray/src/common/readoct.c 1990/09/06 23:32:45 1.8 +++ ray/src/common/readoct.c 1991/02/07 11:00:42 1.11 @@ -37,7 +37,7 @@ int load; CUBE *scene; char *ofn[]; { - char sbuf[128]; + char sbuf[512]; int nf; OBJECT fnobjects; register int i; @@ -104,10 +104,10 @@ char *ofn[]; if (load & IO_SCENE) { /* check object count */ if (nobjects != objorig+fnobjects) - octerror(USER, "bad object count -- stale octree?"); + octerror(USER, "bad object count; octree stale?"); /* check for non-surfaces */ if (nonsurfinset(objorig, fnobjects)) - octerror(USER, "non-surface in set -- stale octree?"); + octerror(USER, "non-surface in set; octree stale?"); } return(nf); } @@ -173,7 +173,7 @@ getflt() /* get a floating point number */ double d; d = (double)getint(4)/0x7fffffff; - return(ldexp(d, getint(1))); + return(ldexp(d, (int)getint(1))); }