From 6cb04c5bece854ce7df8ccd9cb263f45a808099e Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Sun, 23 Jul 2023 15:06:21 +0800 Subject: [PATCH] fix https://github.com/blueloveTH/pocketpy/issues/114 --- include/pocketpy/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index 2f8c4691..8d771bf0 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -48,7 +48,7 @@ struct GIL { explicit GIL() { _mutex.lock(); } ~GIL() { _mutex.unlock(); } }; -#define PK_GLOBAL_SCOPE_LOCK() GIL _lock(); +#define PK_GLOBAL_SCOPE_LOCK() GIL _lock; #else #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_OP_CALL = (PyObject*)0b100011; inline PyObject* const PY_OP_YIELD = (PyObject*)0b110011; -} // namespace pkpy \ No newline at end of file +} // namespace pkpy