[pypy-commit] pypy default: I think the bogus rarithmetic.r_long is not used anywhere. Kill.

arigo noreply at buildbot.pypy.org
Thu Mar 15 19:14:10 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r53687:9b2eacfa9348
Date: 2012-03-15 11:13 -0700
http://bitbucket.org/pypy/pypy/changeset/9b2eacfa9348/

Log:	I think the bogus rarithmetic.r_long is not used anywhere. Kill.

diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py
--- a/pypy/rlib/rarithmetic.py
+++ b/pypy/rlib/rarithmetic.py
@@ -469,10 +469,6 @@
 r_longlong = build_int('r_longlong', True, 64)
 r_ulonglong = build_int('r_ulonglong', False, 64)
 
-# XXX THESE ARE SERIOUSLY BOGUS, DON'T USE!!
-r_long = build_int('r_long', True, 32)
-r_ulong = build_int('r_ulong', False, 32)
-
 longlongmax = r_longlong(LONGLONG_TEST - 1)
 
 if r_longlong is not r_int:
@@ -481,10 +477,7 @@
     r_int64 = int
 
 # needed for ll_os_stat.time_t_to_FILE_TIME in the 64 bit case
-if r_long is not r_int:
-    r_uint32 = r_ulong
-else:
-    r_uint32 = r_uint
+r_uint32 = build_int('r_uint32', False, 32)
 
 # needed for ll_time.time_sleep_llimpl
 maxint32 = int((1 << 31) -1)


More information about the pypy-commit mailing list