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 1.7 by greg, Sat Aug 18 16:28:52 1990 UTC vs.
Revision 1.8 by greg, Wed Apr 17 10:54:58 1991 UTC

# Line 528 | Line 528 | getE2()                                /* E2 -> E2 MULOP E3 */
528  
529  
530   EPNODE *
531 < getE3()                         /* E3 -> E3 ^ E4 */
531 > getE3()                         /* E3 -> E4 ^ E3 */
532                                  /*       E4 */
533   {
534      register EPNODE  *ep1, *ep2;
535  
536      ep1 = getE4();
537 <    while (nextc == '^') {
537 >    if (nextc == '^') {
538          ep2 = newnode();
539          ep2->type = nextc;
540          scan();
541          addekid(ep2, ep1);
542 <        addekid(ep2, getE4());
542 >        addekid(ep2, getE3());
543   #ifdef  RCONST
544          if (ep1->type == NUM && ep1->sibling->type == NUM)
545                  ep2 = rconst(ep2);
546   #endif
547 <        ep1 = ep2;
547 >        return(ep2);
548      }
549      return(ep1);
550   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines