Skip to content

Commit fe0b04e

Browse files
committed
fix casts
1 parent b26dd72 commit fe0b04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/codeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ _PyCode_Validate(struct _PyCodeConstructor *con)
447447
*/
448448
int max_stacksize = (int)(INT_MAX / sizeof(PyObject *))
449449
- FRAME_SPECIALS_SIZE
450-
- PyTuple_GET_SIZE(con->localsplusnames);
450+
- (int)PyTuple_GET_SIZE(con->localsplusnames);
451451
if (con->stacksize >= max_stacksize) {
452452
PyErr_SetString(PyExc_OverflowError, "code: co_stacksize is too large");
453453
return -1;

0 commit comments

Comments
 (0)