8000 Fix msvc · python/cpython@6899f5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6899f5c

Browse files
Fix msvc
1 parent 9a6f4f9 commit 6899f5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef struct _typeobject PyTypeObject;
9393
/* The GC bit-shifts refcounts left by two, and after that shift we still
9494
* need this to be >> 0, so leave three high zero bits (the sign bit and
9595
* room for a shift of two.) */
96-
#define _Py_IMMORTAL_BIT (1L << (8 * sizeof(Py_ssize_t) - 4))
96+
#define _Py_IMMORTAL_BIT (1LL << (8 * sizeof(Py_ssize_t) - 4))
9797

9898
#endif /* Py_IMMORTAL_OBJECTS */
9999

Modules/gcmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ Immortalize all instances accessible through the GC roots.
19881988
[clinic start generated code]*/
19891989

19901990
static PyObject *
1991-
gc_immortalize_heap_impl(PyObject *Py_UNUSED(ignored))
1991+
gc_immortalize_heap_impl(PyObject *module)
19921992
/*[clinic end generated code: output=a7bb85fe2e27e4ae input=ca1709e4667c0623]*/
19931993
{
19941994
return _PyGC_ImmortalizeHeap();

0 commit comments

Comments
 (0)
0