Skip to content

Commit df9b723

Browse files
committed
Fixups
1 parent aa8c14a commit df9b723

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Lib/test/test_ctypes/test_c_simple_type_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_bad_type_message(self):
160160
class F(metaclass=PyCSimpleType):
161161
_type_ = "\0"
162162
message = str(cm.exception)
163-
expected_type_chars = list('cbBhHiIlLdCEFfuzZqQPOv?gX')
163+
expected_type_chars = list('cbBhHiIlLdCEFfuzZqQPXOv?g')
164164
if not hasattr(ctypes, 'c_float_complex'):
165165
expected_type_chars.remove('C')
166166
expected_type_chars.remove('E')

Modules/_ctypes/cfield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ _ctypes_init_fielddesc(void)
15301530
PyMutex_Unlock(&mutex);
15311531
}
15321532

1533-
extern char *
1533+
char *
15341534
_ctypes_get_simple_type_chars(void) {
15351535
_ctypes_init_fielddesc();
15361536
return formattable.simple_type_chars;

Modules/_ctypes/ctypes.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ extern CThunkObject *_ctypes_alloc_callback(ctypes_state *st,
257257
/* a table entry describing a predefined ctypes type */
258258
struct fielddesc {
259259
char code;
260-
261-
ffi_type *pffi_type; /* always statically allocated. */
262-
260+
ffi_type *pffi_type; /* always statically allocated */
263261
SETFUNC setfunc;
264262
GETFUNC getfunc;
265263
SETFUNC setfunc_swapped;

0 commit comments

Comments
 (0)