diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-05-07 07:18:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-05-07 07:18:13 (GMT) |
commit | 7d9c6c7e8c1e381de7e96989c1332cf98d766f3a (patch) | |
tree | 207761f3b4b4024b877f26d9ee9ed7c849b6652c /Modules | |
parent | 156c49ad1c7c8d785f52c61ea05f2236da7e1325 (diff) | |
download | cpython-7d9c6c7e8c1e381de7e96989c1332cf98d766f3a.zip cpython-7d9c6c7e8c1e381de7e96989c1332cf98d766f3a.tar.gz cpython-7d9c6c7e8c1e381de7e96989c1332cf98d766f3a.tar.bz2 |
Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848.
Backported to 2.3.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/sre.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index ba8500b..4502802 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -16,7 +16,7 @@ /* size of a code word (must be unsigned short or larger, and large enough to hold a Py_UNICODE character) */ #ifdef Py_UNICODE_WIDE -#define SRE_CODE unsigned long +#define SRE_CODE Py_UCS4 #else #define SRE_CODE unsigned short #endif |