[Python-bugs-list] [ python-Bugs-434186 ] 0x80000000/2 != 0x80000000>>1
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 18 Jun 2001 08:14:02 -0700
Bugs item #434186, was updated on 2001-06-18 08:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=434186&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: 0x80000000/2 != 0x80000000>>1
Initial Comment:
[16:07:29 toby@ruislip-manor] $ python
Python 2.1 (#2, May 15 2001, 11:04:28)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more
information.
>>> 0x80000000>>1
-1073741824
>>> 0x80000000/2
1073741824
>>> 0x80000000/-2
-1073741824
>>>
Pretty much says it all.
the problem seems to be computing -xi in
intobject.c:i_divmod causing an overflow.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=434186&group_id=5470