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

Comparing ray/src/rt/fprism.c (file contents):
Revision 2.3 by greg, Tue Feb 14 08:54:17 1995 UTC vs.
Revision 2.5 by greg, Wed Apr 23 00:52:34 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1993 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /* Ce programme calcule les directions et les energies des rayons lumineux
5     resultant du passage d'un rayon au travers d'un vitrage prismatique
6  
# Line 403 | Line 400 | if(r.e > seuil)
400   if (egalite == 0)
401    {
402     if (nbrayons == 0) ray = (TRAYON *)calloc(1,sizeof(TRAYON));
403 <   else ray = (TRAYON *)realloc(ray, (nbrayons+1)*(sizeof(TRAYON)));        
403 >   else ray = (TRAYON *)realloc((void *)ray, (nbrayons+1)*(sizeof(TRAYON)));        
404     if (ray == NULL)
405       error(SYSTEM, "out of memory in sortie\n");
406     raytemp = &ray[nbrayons];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines