Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: numpy-record-dtypes
Changeset: r53780:6ff0ec03a38a
Date: 2012-03-18 09:35 +0200
http://bitbucket.org/pypy/pypy/changeset/6ff0ec03a38a/

Log:    Add an assert and carefully ignore the rest of REVIEW (yes, but not
        this branch maybe)

diff --git a/REVIEW.rst b/REVIEW.rst
deleted file mode 100644
--- a/REVIEW.rst
+++ /dev/null
@@ -1,6 +0,0 @@
-REVIEW
-======
-
-* RecordType.str_format should use Builder
-* IntP and UIntP aren't the right size, they should be the same size of 
rffi.VOIDP, not as Signed/Unsigned
-* Instead of setup() can we please have get_alignment on the Type class.
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -803,6 +803,8 @@
         UIntP = tp
         break
 del tp
+assert rffi.sizeof(IntP) == rffi.sizeof(rffi.VOIDP)
+assert rffi.sizeof(UIntP) == rffi.sizeof(rffi.VOIDP)
 
 def _setup():
     # compute alignment
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to