[Python-Dev] ssize_t branch merged
"Martin v. Löwis"
martin at v.loewis.de
Sun Feb 19 06:46:40 CET 2006
More information about the Python-Dev mailing list
Sun Feb 19 06:46:40 CET 2006
- Previous message: [Python-Dev] ssize_t branch merged
- Next message: [Python-Dev] PEP 332 revival in coordination with pep 349? [ Was:Re: release plan for 2.5 ?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Travis E. Oliphant wrote: > Why not just > > #if SIZEOF_SIZE_T == 2 > #define PY_SSIZE_T_MAX 0x7fff > #elif SIZEOF_SIZE_T == 4 > #define PY_SSIZE_T_MAX 0x7fffffff > #elif SIZEOF_SIZE_T == 8 > #define PY_SSIZE_T_MAX 0x7fffffffffffffff > #elif SIZEOF_SIZE_T == 16 > #define PY_SSIZE_T_MAX 0x7fffffffffffffffffffffffffffffff > #endif That would not work: 0x7fffffffffffffff is not a valid integer literal. 0x7fffffffffffffffL might work, or 0x7fffffffffffffffLL, or 0x7fffffffffffffffi64. Which of these is correct depends on the compiler. How to spell 128-bit integral constants, I don't know; it appears that MS foresees a i128 suffix for them. Regards, Martin
- Previous message: [Python-Dev] ssize_t branch merged
- Next message: [Python-Dev] PEP 332 revival in coordination with pep 349? [ Was:Re: release plan for 2.5 ?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list