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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.109 by greg, Sat Nov 18 16:24:06 2023 UTC vs.
Revision 2.110 by greg, Mon Dec 11 18:33:53 2023 UTC

# Line 926 | Line 926 | static void
926   putd(RREAL *v, int n)           /* output binary double(s) */
927   {
928   #ifdef  SMLFLT
929 <        double  da[3];
929 >        double  da[MAXCSAMP];
930          int     i;
931  
932 <        if (n > 3)
932 >        if (n > MAXCSAMP)
933                  error(INTERNAL, "code error in putd()");
934          for (i = n; i--; )
935                  da[i] = v[i];
# Line 944 | Line 944 | static void
944   putf(RREAL *v, int n)           /* output binary float(s) */
945   {
946   #ifndef SMLFLT
947 <        float   fa[3];
947 >        float   fa[MAXCSAMP];
948          int     i;
949  
950 <        if (n > 3)
950 >        if (n > MAXCSAMP)
951                  error(INTERNAL, "code error in putf()");
952          for (i = n; i--; )
953                  fa[i] = v[i];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines