[New-bugs-announce] [issue9613] Python considers pid longs under 64-bit Windows

Antoine Pitrou report at bugs.python.org
Sun Aug 15 20:02:27 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

Under 64-bit Windows, Python aliases PyLong_FromPid() to PyLong_FromLong() (and PyLong_AsPid() to PyLong_AsLong()), but a C "long" is 32-bit, while apparently the MSVCRT defines a pid to be intptr_t, that is 64-bit. A potential loss of data ensues.

----------
components: Extension Modules, Interpreter Core, Windows
messages: 113982
nosy: brian.curtin, pitrou, tim.golden
priority: normal
severity: normal
status: open
title: Python considers pid longs under 64-bit Windows
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9613>
_______________________________________


More information about the New-bugs-announce mailing list