Skip to content

Commit 97472fe

Browse files
More reuse of constants.
1 parent 73edcfe commit 97472fe

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Modules/_multiprocessing/multiprocessing.h

+2-9
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,8 @@
6060
* Format codes
6161
*/
6262

63-
#if SIZEOF_VOID_P == SIZEOF_LONG
64-
# define F_POINTER "k"
65-
# define T_POINTER T_ULONG
66-
#elif SIZEOF_VOID_P == SIZEOF_LONG_LONG
67-
# define F_POINTER "K"
68-
# define T_POINTER T_ULONGLONG
69-
#else
70-
# error "can't find format code for unsigned integer of same size as void*"
71-
#endif
63+
#define F_POINTER _Py_PARSE_UINTPTR
64+
#define T_POINTER Py_T_UINTPTR
7265

7366
#ifdef MS_WINDOWS
7467
# define F_HANDLE F_POINTER

0 commit comments

Comments
 (0)