]> granicus.if.org Git - python/commit
Guido suggests, and I agree, to insist that SIZEOF_VOID_P be a power of 2.
authorTim Peters <tim.peters@gmail.com>
Sun, 7 Oct 2001 03:54:51 +0000 (03:54 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 7 Oct 2001 03:54:51 +0000 (03:54 +0000)
commitf2a67daca2206bab783abba99d428e5eaf36a8f7
tree1e3360c426729cd72381d1308f8989cd9ce3cbae
parent0a1fc4e389b9839f2330083fb20e7a466835422f
Guido suggests, and I agree, to insist that SIZEOF_VOID_P be a power of 2.
This simplifies the rounding in _PyObject_VAR_SIZE, allows to restore the
pre-rounding calling sequence, and allows some nice little simplifications
in its callers.  I'm still making it return a size_t, though.
Include/objimpl.h
Modules/gcmodule.c
Objects/object.c
Objects/typeobject.c