Changeset 232:ec41feb2068b in livinglogic.java.ul4

Show
Ignore:
Timestamp:
07/31/09 11:47:01 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix another bug in the block stack nesting check.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/Lib/ul4c.py

    r230 r232  
    5959                r = parseexpr(template, location) 
    6060                template.opcode(ul4.Opcode.OC_IF, r, location) 
    61                 stack[-1] = ("if", stack[-1][1]+1, stack[-1][2], False) 
     61                stack[-1] = ("if", stack[-1][1], stack[-1][2]+1, False) 
    6262            elif location.type == "else": 
    6363                if not stack or stack[-1][0] != "if":