This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: ssize_t where size_t expected
Type: compile error Stage: resolved
Components: Interpreter Core Versions: Python 3.2, Python 3.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, python-dev, tari
Priority: normal Keywords:

Created on 2012-05-14 00:13 by tari, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg160585 - (view) Author: Peter Marheine (tari) Date: 2012-05-14 00:13
Cross-compiling the interpreter for a system without a definition for ssize_t fails in PyType_FromSpec (Object/typeobject.c:2380 in the 3.2.3 release, line 2409 in hg 6b8f34a1cb22).

It appears the type of len should be corrected to size_t to match the signatures of strlen and memcpy.  This fixes the compilation error.
msg160616 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-14 12:51
New changeset 2bbf3ba30435 by Antoine Pitrou in branch '3.2':
Use size_t, not ssize_t (issue #14801).

New changeset 64b695a6cc3d by Antoine Pitrou in branch 'default':
Use size_t, not ssize_t (issue #14801).
msg160618 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-05-14 12:52
Should be ok now, thank you.
Date User Action Args
2022-04-11 14:57:30adminsetgithub: 59006
2012-05-14 12:52:52pitrousetstatus: open -> closed

versions: + Python 3.3
nosy: + pitrou

messages: + msg160618
resolution: fixed
stage: resolved
2012-05-14 12:51:35python-devsetnosy: + python-dev
messages: + msg160616
2012-05-14 00:13:33taricreate