# Construct unnop node of appropriate class for
# given operator.
if isinstance(operand, IntNode) and operator == '-':
- return IntNode(pos = operand.pos, value = -int(operand.value))
+ return IntNode(pos = operand.pos, value = str(-int(operand.value, 0)))
elif isinstance(operand, UnopNode) and operand.operator == operator:
warning(pos, "Python has no increment/decrement operator: %s%sx = %s(%sx) = x" % ((operator,)*4), 5)
return unop_node_classes[operator](pos,
}
}
""",""
-]
\ No newline at end of file
+]