| Index: third_party/yasm/patched-yasm/tools/python-yasm/intnum.pxi
|
| ===================================================================
|
| --- third_party/yasm/patched-yasm/tools/python-yasm/intnum.pxi (revision 71129)
|
| +++ third_party/yasm/patched-yasm/tools/python-yasm/intnum.pxi (working copy)
|
| @@ -57,7 +57,7 @@
|
| cdef class IntNum:
|
| cdef yasm_intnum *intn
|
|
|
| - def __new__(self, value, base=None):
|
| + def __cinit__(self, value, base=None):
|
| cdef unsigned char buf[16]
|
|
|
| self.intn = NULL
|
| @@ -115,7 +115,7 @@
|
| def __neg__(self): return __intnum_op(self, YASM_EXPR_NEG, None)
|
| def __pos__(self): return self
|
| def __abs__(self):
|
| - if yasm_intnum_sign(self.intn) >= 0: return self
|
| + if yasm_intnum_sign(self.intn) >= 0: return IntNum(self)
|
| else: return __intnum_op(self, YASM_EXPR_NEG, None)
|
| def __nonzero__(self): return not yasm_intnum_is_zero(self.intn)
|
| def __invert__(self): return __intnum_op(self, YASM_EXPR_NOT, None)
|
|
|