From ee4df05e90d1fb374dcfebbb6887480f41cc073e Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <vital.had@gmail.com>
Date: Tue, 16 Apr 2024 18:06:48 +0800
Subject: [PATCH] struct-wrapper: fix for python 3.10

---
 pyobjc-core/Modules/objc/struct-wrapper.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git pyobjc-core/Modules/objc/struct-wrapper.m pyobjc-core/Modules/objc/struct-wrapper.m
index dd753e43a..d601cf266 100644
--- pyobjc-core/Modules/objc/struct-wrapper.m
+++ pyobjc-core/Modules/objc/struct-wrapper.m
@@ -1289,7 +1289,7 @@ PyObjC_MakeStructType(const char* name, const char* doc, initproc tpinit,
         return NULL;
     }
 
-    Py_REFCNT(result)         = 1;
+    Py_REFCNT(result) == 1;
     result->base.tp_members   = members;
     result->base.tp_basicsize = sizeof(PyObject) + (numFields * sizeof(PyObject*));
     if (PyDict_SetItemString(result->base.tp_dict, "_fields", fields) == -1) {
