Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r71796:7b30281727ad
Date: 2014-06-01 18:53 +0200
http://bitbucket.org/pypy/pypy/changeset/7b30281727ad/

Log:    The variable 'uid' was originally unsigned.

diff --git a/rpython/rtyper/lltypesystem/rclass.py 
b/rpython/rtyper/lltypesystem/rclass.py
--- a/rpython/rtyper/lltypesystem/rclass.py
+++ b/rpython/rtyper/lltypesystem/rclass.py
@@ -588,7 +588,7 @@
         # Two choices: the first gives a fast answer but it can change
         # (typically only once) during the life of the object.
         #uid = r_uint(cast_ptr_to_int(i))
-        uid = llop.gc_id(lltype.Signed, i)
+        uid = r_uint(llop.gc_id(lltype.Signed, i))
         #
         nameLen = len(instance.typeptr.name)
         nameString = rstr.mallocstr(nameLen-1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to