[New-bugs-announce] [issue29761] Wrong size of c_ulong in linux, windows version is fine

Jorge Cisneros report at bugs.python.org
Wed Mar 8 16:08:17 EST 2017


New submission from Jorge Cisneros:

In the linux version 2.7.12 the size of c_ulong and c_ulonglong is the same, that is not correct 

Python 2.7.12 (default, Mar  6 2017, 18:06:04)
[GCC 4.9.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> print sizeof(c_ulong),sizeof(c_ulonglong)
8 8


Doing the same in Windows, the results are correct.

Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> print sizeof(c_ulong),sizeof(c_ulonglong)
4 8
>>>

----------
components: ctypes
messages: 289257
nosy: Jorge Cisneros
priority: normal
severity: normal
status: open
title: Wrong size of c_ulong in linux, windows version is fine
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list