Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 07f90b0

Browse files
Anselm KruisAnselm Kruis
Anselm Kruis
authored and
Anselm Kruis
committed
Stackless issue #290: fix two compiler warnings on Windows 64bit
1 parent 9f4e976 commit 07f90b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ type_call(PyTypeObject *type, PyObject *args, PyObject *kwds)
997997
int is_stackless;
998998
if (tp_init == slot_tp_init)
999999
STACKLESS_PROMOTE_ALL();
1000-
is_stackless = _PyStackless_TRY_STACKLESS;
1000+
is_stackless = !!_PyStackless_TRY_STACKLESS;
10011001
#endif
10021002
res = tp_init(obj, args, kwds);
10031003
#ifdef STACKLESS

Stackless/module/stacklessmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ test_nostacklesscall_call(PyObject *f, PyObject *arg, PyObject *kw)
11051105
PyObject * callback1;
11061106
PyObject * callback2 = NULL;
11071107
PyObject * rest;
1108-
int stackless = _PyStackless_TRY_STACKLESS;
1108+
int stackless = !!_PyStackless_TRY_STACKLESS;
11091109

11101110
callback1 = PyTuple_GetItem(arg, 0);
11111111
if (callback1 == NULL)

0 commit comments

Comments
 (0)