--- ray/src/rt/srcobstr.c 2007/07/25 04:12:36 2.13 +++ ray/src/rt/srcobstr.c 2009/12/12 00:03:42 2.15 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: srcobstr.c,v 2.13 2007/07/25 04:12:36 greg Exp $"; +static const char RCSid[] = "$Id: srcobstr.c,v 2.15 2009/12/12 00:03:42 greg Exp $"; #endif /* * Source occlusion caching routines @@ -11,6 +11,8 @@ static const char RCSid[] = "$Id: srcobstr.c,v 2.13 20 #include "otspecial.h" +#include "rtotypes.h" + #include "source.h" #define ABS(x) ((x)>0 ? (x) : -(x)) @@ -178,7 +180,7 @@ initobscache(int sn) static OBJECT * /* return occluder cache entry */ srcobstructp(register RAY *r) { - static unsigned long lastrno = ~0; + static RNUMBER lastrno = ~0; static OBJECT noobs; static OBJECT *lastobjp; SRCREC *srcp;