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

Comparing ray/src/common/calexpr.c (file contents):
Revision 2.39 by greg, Sat Dec 28 18:05:13 2019 UTC vs.
Revision 2.40 by greg, Fri Jun 19 22:33:45 2020 UTC

# Line 674 | Line 674 | getE3(void)                    /* E3 -> E4 ^ E3 */
674                          ep2 = newnode();
675                          ep2->type = NUM;
676                          ep2->v.num = 1;
677 +                } else if (ep3->type == NUM && ep3->v.num == 1) {
678 +                        efree((char *)ep3);     /* (E4 ^ 1) */
679 +                        ep1->sibling = NULL;
680 +                        efree((char *)ep2);
681 +                        ep2 = ep1;
682                  }
683          }
684          return(ep2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines