]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Merged revisions 68889 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sat, 24 Jan 2009 17:16:17 +0000 (17:16 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 24 Jan 2009 17:16:17 +0000 (17:16 +0000)
commit1385fb32855cd658f03e617bf776bb1ceacbec94
treefef0b1146587c7fdd11a57cb3ef47f33d7ef8d78
parent302b2387868ec07c0bef070059aac529eafd3197
Merged revisions 68889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68889 | mark.dickinson | 2009-01-24 15:02:35 +0000 (Sat, 24 Jan 2009) | 9 lines

  Some minor cleanups in PyLong_FromLong:
   - fast path wasn't being properly taken for negative ints;
     thanks Victor Stinner for pointing this out.
   - use Py_SAFE_DOWNCAST instead of direct casting to digit
     (it's safer, especially if we ever consider moving to 30-bit
     digits)
   - cleaner way to write negation
........
Objects/longobject.c