summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
AgeCommit message (Expand)AuthorLines
2019-06-07[2.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH...Zackery Spytz-1/+1
2018-05-19bpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980)Victor Stinner-1/+1
2017-09-13consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563)Benjamin Peterson-40/+39
2016-12-03fix refleak in the shift-by-zero case (#27870)Benjamin Peterson-5/+6
2016-09-07Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter-1/+1
2016-08-29Issue #27870: A left shift of zero by a large integer no longer attempts to a...Mark Dickinson-0/+5
2016-08-21Issue #25604: Fix bug in integer true division that could have resulted in of...Mark Dickinson-2/+2
2016-07-28Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter-2/+2
2015-11-25Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka-1/+1
2013-10-05Issue #19171: speed some cases of 3-argument long pow().Tim Peters-4/+10
2013-01-19Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-0/+18
2012-12-28Issue #16761: Raise TypeError when int() or long() called with base argument ...Serhiy Storchaka-1/+7
2012-10-07Issue #14783: Backport changes from 3.2.Chris Jerdonek-6/+12
2011-03-16#11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2011-03-15#11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2010-05-09Wrap multiline macros in a 'do {} while(0)', for safety.Mark Dickinson-37/+43
2010-05-09Post-detabification cleanup: whitespace fixes and long line rewraps only.Mark Dickinson-159/+155
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-3128/+3128
2010-05-08Issue #8659: Remove redundant ABS calls. Thanks Daniel Stutzbach.Mark Dickinson-5/+2
2010-04-07Issue #8328: Silence Visual Studio warnings.Stefan Krah-6/+6
2010-04-06Silence a 'comparison between signed and unsigned integer expressions' gcc wa...Mark Dickinson-1/+1
2010-04-06Issue #8259: Get rid of 'outrageous left shift count' error whenMark Dickinson-14/+6
2010-01-30Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, aMark Dickinson-0/+104
2010-01-02Refactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDoubleMark Dickinson-221/+146
2009-12-27Issue #1811: Improve accuracy and consistency of true division for integers.Mark Dickinson-30/+251
2009-12-21Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.Mark Dickinson-31/+101
2009-10-25Issue #1087418: Small performance boost for bitwise operations on longs.Mark Dickinson-66/+100
2009-09-28Style/consistency/nano-optimization nit: replace occurrences ofMark Dickinson-6/+6
2009-09-21Silence MSVC compiler warnings.Mark Dickinson-2/+3
2009-09-16Issue #6713: Improve performance of str(n) and repr(n) for integers nMark Dickinson-0/+119
2009-09-13Fix potential signed-overflow bug in _PyLong_Format; also fixMark Dickinson-9/+11
2009-09-06Remove redundant assignmentMark Dickinson-1/+0
2009-05-02Remove unnecessary use of context for long getters.Mark Dickinson-10/+15
2009-04-20Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson-15/+152
2009-04-02sys.long_info attributes should be ints, not longsMark Dickinson-2/+4
2009-03-23Issue #5512: speed up the long division algorithm for Python longs.Mark Dickinson-91/+149
2009-03-20Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson-0/+49
2009-02-25Replace long with twodigits, to avoid dependingMark Dickinson-1/+1
2009-02-15A few more minor fixes in longobject.cMark Dickinson-5/+4
2009-02-15Issue #5260: Various portability and standards compliance fixes, optimizationsMark Dickinson-46/+35
2009-02-10Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError forMark Dickinson-1/+1
2009-01-26Fix comment.Mark Dickinson-3/+3
2009-01-26Fix undefined behaviour (left shift of negative value) in long_hash. Also,Mark Dickinson-9/+10
2009-01-25No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large...Mark Dickinson-1/+1
2009-01-24Issue #4393: fix 3 classes of potential portability problems in longobject.c:Mark Dickinson-23/+20
2008-12-17Issue #3439: add bit_length method to int and long.Mark Dickinson-0/+71
2008-08-04Issue #1481296: (again!) Make conversion of a float NaN to an int orMark Dickinson-2/+4
2008-07-31Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz-0/+2
2008-07-10Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies-2/+2
2008-06-24Revert 64424, 64438, and 64439.Raymond Hettinger-7/+0