Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/yasm/patched-yasm/tools/python-yasm/intnum.pxi

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698