| 54 |
|
/* initialize dispatch table */ |
| 55 |
|
initstypes(); |
| 56 |
|
/* find direct sources */ |
| 57 |
< |
for (i = 0; i < nobjects; i++) { |
| 57 |
> |
for (i = 0; i < nsceneobjs; i++) { |
| 58 |
|
|
| 59 |
|
o = objptr(i); |
| 60 |
|
|
| 293 |
|
for (sn = 0; srcray(&sr, r, &si); sn++) { |
| 294 |
|
if (sn >= maxcntr) { |
| 295 |
|
maxcntr = sn + MAXSPART; |
| 296 |
< |
srccnt = (CONTRIB *)realloc((char *)srccnt, |
| 296 |
> |
srccnt = (CONTRIB *)realloc((void *)srccnt, |
| 297 |
|
maxcntr*sizeof(CONTRIB)); |
| 298 |
< |
cntord = (CNTPTR *)realloc((char *)cntord, |
| 298 |
> |
cntord = (CNTPTR *)realloc((void *)cntord, |
| 299 |
|
maxcntr*sizeof(CNTPTR)); |
| 300 |
|
if (srccnt == NULL | cntord == NULL) |
| 301 |
|
error(SYSTEM, "out of memory in direct"); |