[New-bugs-announce] [issue16376] wrong type for wintypes.BYTE

anatoly techtonik report at bugs.python.org
Wed Oct 31 18:02:55 CET 2012


New submission from anatoly techtonik:

Windows BYTE type is unsigned char, but ctypes defines it as signed.

{{{
BYTE	
A byte (8 bits).
This type is declared in WinDef.h as follows:
typedef unsigned char BYTE;
typedef unsigned char BYTE;
}}}
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx

http://hg.python.org/cpython/file/e5f39546989f/Lib/ctypes/wintypes.py#l4

----------
components: ctypes
messages: 174331
nosy: techtonik
priority: normal
severity: normal
status: open
title: wrong type for wintypes.BYTE
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list