]> granicus.if.org Git - python/commit
Use correct PyArg_Parse format char for Py_ssize_t in unicode.center().
authorThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 19:34:37 +0000 (19:34 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 16 Feb 2006 19:34:37 +0000 (19:34 +0000)
commitde01774dae6771aa5abdaca2ef39e339ad223f8d
tree3b9002c2365923f168f0e83f7d6630eb2f8cf686
parent13870b18f2a843d568f82c89b72f33dc427b9b23
Use correct PyArg_Parse format char for Py_ssize_t in unicode.center().
Fixes:

>>> u"".center(10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError

on 64-bit systems.
Objects/unicodeobject.c