Changeset 408 for proto


Ignore:
Timestamp:
Jun 11, 2010, 2:44:12 PM (9 years ago)
Author:
eamiri
Message:

minor bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/py2bitexpr.py

    r387 r408  
    14731473    if isinstance(s[0], bitexpr.WhileLoop):
    14741474        #code = generate_statement(s[0].control_expr, indent, "while")
    1475         code = "\n%s((%s)||(256&%s)) {\n"%(" "*indent+"while"+" ", generate_condition(s[0].control_expr), s[0].carry_expr.var.varname+">0")
     1475        code = "\n%s((%s)||((256&%s)%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.