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 <rep...@bugs.python.org> <http://bugs.python.org/issue16376> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com