From 811755f924a681ef0d4604f28170c75593a00de1 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 29 Apr 2026 13:45:28 +0800 Subject: [PATCH] Update gc.c --- src/modules/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/gc.c b/src/modules/gc.c index 9733e2ff..a5c67a28 100644 --- a/src/modules/gc.c +++ b/src/modules/gc.c @@ -54,7 +54,7 @@ static bool gc_is_tracked(int argc, py_Ref argv) { py_newbool(py_retval(), false); return true; } - bool res = argv->_obj->gc_marked & 0b10; + bool res = !(argv->_obj->gc_marked & 0b10); py_newbool(py_retval(), res); return true; }