Changeset 387 for proto


Ignore:
Timestamp:
Apr 13, 2010, 1:07:30 PM (9 years ago)
Author:
eamiri
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/py2bitexpr.py

    r374 r387  
    14731473    if isinstance(s[0], bitexpr.WhileLoop):
    14741474        #code = generate_statement(s[0].control_expr, indent, "while")
    1475         code = "\n%s(%s|%s) {\n"%(" "*indent+"while"+" ", generate_condition(s[0].control_expr), s[0].carry_expr.var.varname+">0")
     1475        code = "\n%s((%s)||(256&%s)) {\n"%(" "*indent+"while"+" ", generate_condition(s[0].control_expr), s[0].carry_expr.var.varname+">0")
    14761476        code += print_prog(s[0].stmts, indent+indent_unit)
    14771477        code += " "*indent+"}\n"
Note: See TracChangeset for help on using the changeset viewer.