classification
Title: ssize_t where size_t expected
Type: compile error Stage: resolved
Components: Interpreter Core Versions: Python 3.2, Python 3.3
process
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 2012-05-14 12:52 by pitrou. 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).
http://hg.python.org/cpython/rev/2bbf3ba30435

New changeset 64b695a6cc3d by Antoine Pitrou in branch 'default':
Use size_t, not ssize_t (issue #14801).
http://hg.python.org/cpython/rev/64b695a6cc3d
msg160618 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-05-14 12:52
Should be ok now, thank you.
History
Date User Action Args
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