Skip to content

Commit cf70637

Browse files
committed
Fix wrong type of ctypes.wintypes.BYTE
Created from a patch file attached to an issue, by Anatoly Techtonik.
1 parent 76f989d commit cf70637

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/ctypes/wintypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The most useful windows datatypes
22
import ctypes
33

4-
BYTE = ctypes.c_byte
4+
BYTE = ctypes.c_ubyte
55
WORD = ctypes.c_ushort
66
DWORD = ctypes.c_ulong
77

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:data:`ctypes.wintypes.BYTE` definition changed from
2+
:data:`~ctypes.c_byte` to :data:`~ctypes.c_ubyte` to match Windows
3+
SDK. Patch by Anatoly Techtonik.

0 commit comments

Comments
 (0)