Skip to content

Commit e235e62

Browse files
committed
Set an explicit size for a struct member
This is useful because debuggers will write to this variable remotely, and it's helpful for it to have a well known size rather than one that could vary per platform.
1 parent a9d3ea9 commit e235e62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/cpython/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef int (*Py_tracefunc)(PyObject *, PyFrameObject *, int, PyObject *);
3232
/* Remote debugger support */
3333
# define MAX_SCRIPT_PATH_SIZE 512
3434
typedef struct _remote_debugger_support {
35-
int debugger_pending_call;
35+
int32_t debugger_pending_call;
3636
char debugger_script_path[MAX_SCRIPT_PATH_SIZE];
3737
} _PyRemoteDebuggerSupport;
3838

0 commit comments

Comments
 (0)