Commit f47d9927 authored by dbarbera's avatar dbarbera
Browse files

Fixed bitwise operator names

parent 966b48e9
......@@ -483,9 +483,9 @@ def _logical(expr):
if righttmp.type.kind == core.TYPE_POINTER:
righttmp = g.builder.load(righttmp, 'lefttmp')
if expr.operand == '&&':
return g.builder.and_(lefttmp, righttmp, 'ortmp')
elif expr.operand == '||':
if expr.operand == 'and':
return g.builder.and_(lefttmp, righttmp, 'andtmp')
elif expr.operand == 'or':
return g.builder.or_(lefttmp, righttmp, 'ortmp')
else:
return g.builder.xor(lefttmp, righttmp, 'xortmp')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment