From: Stefan Behnel Date: Sun, 6 Jan 2008 08:02:59 +0000 (+0100) Subject: test 'unsigned long' also against 8**sizeof(unsigned long) - 1 X-Git-Tag: 0.9.6.14~47^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=821bc179d20699cf6813d85f8799be3fecac24eb;p=cython.git test 'unsigned long' also against 8**sizeof(unsigned long) - 1 --- diff --git a/tests/run/r_vree_1.pyx b/tests/run/r_vree_1.pyx index 13c1744e..74d1ba13 100644 --- a/tests/run/r_vree_1.pyx +++ b/tests/run/r_vree_1.pyx @@ -14,9 +14,15 @@ __doc__ = """ 2147483648L >>> test(sys.maxint * 2 + 1) 4294967295L + + >>> test(8 ** unsigned_long_size() - 1) > sys.maxint + True """ def test(k): cdef unsigned long m m = k return m + +def unsigned_long_size(): + return sizeof(unsigned long)