Issue 5260: longobject.c: minor fixes, cleanups and optimizations (original) (raw)

Here are various minor portability and standards-compliance fixes, optimizations and cleanups for the trunk version of Objects/longobject.c. Most of these also apply to py3k.

I'll admit to an ulterior motive here: the aim is to extract all the trivial, non-behaviour-changing pieces of the 30-bit longdigit patch (issue 4258), in order to make that patch easier to review. A good few of the changes here are designed to weaken the assumptions about the relative sizes of digit, int and long.

Detailed contents of this patch: