Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 31250:dfd0114cf9ec legacy-trunk
There are places in Python which assume bytes have 8-bits. Formalize that a
bit by checking the value of UCHAR_MAX in Include/Python.h. There was a
check in Objects/stringobject.c. Remove that. (Note that we don't define
UCHAR_MAX if it's not defined as the old test did.)
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Mon, 22 Dec 2003 16:31:41 +0000 |
| parents | 504943c89193 |
| children | eaa1a4b74328 |
line wrap: on
line diff
--- a/Objects/stringobject.c Mon Dec 22 01:33:08 2003 +0000 +++ b/Objects/stringobject.c Mon Dec 22 16:31:41 2003 +0000 @@ -8,10 +8,6 @@ int null_strings, one_strings; #endif -#if !defined(HAVE_LIMITS_H) && !defined(UCHAR_MAX) -#define UCHAR_MAX 255 -#endif - static PyStringObject *characters[UCHAR_MAX + 1]; static PyStringObject *nullstring;
