瀏覽代碼

fix https://github.com/blueloveTH/pocketpy/issues/114

BLUELOVETH 2 年之前
父節點
當前提交
6cb04c5bec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/pocketpy/common.h

+ 2 - 2
include/pocketpy/common.h

@@ -48,7 +48,7 @@ struct GIL {
     explicit GIL() { _mutex.lock(); }
     explicit GIL() { _mutex.lock(); }
     ~GIL() { _mutex.unlock(); }
     ~GIL() { _mutex.unlock(); }
 };
 };
-#define PK_GLOBAL_SCOPE_LOCK() GIL _lock();
+#define PK_GLOBAL_SCOPE_LOCK() GIL _lock;
 
 
 #else
 #else
 #define PK_THREAD_LOCAL
 #define PK_THREAD_LOCAL
@@ -154,4 +154,4 @@ inline bool is_both_float(PyObject* a, PyObject* b) noexcept {
 inline PyObject* const PY_NULL = (PyObject*)0b000011;		// tagged null
 inline PyObject* const PY_NULL = (PyObject*)0b000011;		// tagged null
 inline PyObject* const PY_OP_CALL = (PyObject*)0b100011;
 inline PyObject* const PY_OP_CALL = (PyObject*)0b100011;
 inline PyObject* const PY_OP_YIELD = (PyObject*)0b110011;
 inline PyObject* const PY_OP_YIELD = (PyObject*)0b110011;
-} // namespace pkpy
+} // namespace pkpy