mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Move LONG_BIT from intobject.c to pyport.h. #error if it's already been
#define'd to an unreasonable value (several recent gcc systems have misdefined it, causing bogus overflows in integer multiplication). Nuke CHAR_BIT entirely.
This commit is contained in:
parent
c85eb0bd4b
commit
d57731f74b
2 changed files with 13 additions and 8 deletions
|
@ -4,14 +4,6 @@
|
|||
#include "Python.h"
|
||||
#include <ctype.h>
|
||||
|
||||
#ifndef CHAR_BIT
|
||||
#define CHAR_BIT 8
|
||||
#endif
|
||||
|
||||
#ifndef LONG_BIT
|
||||
#define LONG_BIT (CHAR_BIT * sizeof(long))
|
||||
#endif
|
||||
|
||||
long
|
||||
PyInt_GetMax(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue