*** test_bitfields.py.orig Fri Jan 8 19:49:16 2010 --- test_bitfields.py Fri Jan 8 19:49:39 2010 *************** *** 6,28 **** import _ctypes_test class BITS(Structure): ! _fields_ = [("A", c_int, 1), ! ("B", c_int, 2), ! ("C", c_int, 3), ! ("D", c_int, 4), ! ("E", c_int, 5), ! ("F", c_int, 6), ! ("G", c_int, 7), ! ("H", c_int, 8), ! ("I", c_int, 9), ! ("M", c_short, 1), ! ("N", c_short, 2), ! ("O", c_short, 3), ! ("P", c_short, 4), ! ("Q", c_short, 5), ! ("R", c_short, 6), ! ("S", c_short, 7)] func = CDLL(_ctypes_test.__file__).unpack_bitfields func.argtypes = POINTER(BITS), c_char --- 6,28 ---- import _ctypes_test class BITS(Structure): ! _fields_ = [("A", c_uint, 1), ! ("B", c_uint, 2), ! ("C", c_uint, 3), ! ("D", c_uint, 4), ! ("E", c_uint, 5), ! ("F", c_uint, 6), ! ("G", c_uint, 7), ! ("H", c_uint, 8), ! ("I", c_uint, 9), ! ("M", c_ushort, 1), ! ("N", c_ushort, 2), ! ("O", c_ushort, 3), ! ("P", c_ushort, 4), ! ("Q", c_ushort, 5), ! ("R", c_ushort, 6), ! ("S", c_ushort, 7)] func = CDLL(_ctypes_test.__file__).unpack_bitfields func.argtypes = POINTER(BITS), c_char