From a3628c5d4c7dfe98b962b979433a3facf6d07243 Mon Sep 17 00:00:00 2001 From: Angelo Dell'Aera Date: Thu, 21 Nov 2024 09:39:51 +0100 Subject: [PATCH] Fix typo --- src/Wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Wrapper.cpp b/src/Wrapper.cpp index 981df982..5ba4253d 100644 --- a/src/Wrapper.cpp +++ b/src/Wrapper.cpp @@ -313,7 +313,7 @@ v8::Intercepted CPythonObject::NamedGetter(v8::Local prop, const v8::P } if (::PyMapping_Check(obj.ptr()) && -#if PY_VERSION_EX >= 0x030d0000 +#if PY_VERSION_HEX >= 0x030d0000 ::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1 #else ::PyMapping_HasKeyString(obj.ptr(), *name) @@ -429,7 +429,7 @@ v8::Intercepted CPythonObject::NamedQuery(v8::Local prop, const v8::Pr if (*name) exists = PyGen_Check(obj.ptr()) || ::PyObject_HasAttrString(obj.ptr(), *name) || (::PyMapping_Check(obj.ptr()) && -#if PY_VERSION_EX >= 0x030d0000 +#if PY_VERSION_HEX >= 0x030d0000 ::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1 #else ::PyMapping_HasKeyString(obj.ptr(), *name) @@ -457,7 +457,7 @@ v8::Intercepted CPythonObject::NamedDeleter(v8::Local prop, const v8:: if (!::PyObject_HasAttrString(obj.ptr(), *name) && ::PyMapping_Check(obj.ptr()) && -#if PY_VERSION_EX >= 0x030d0000 +#if PY_VERSION_HEX >= 0x030d0000 ::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1 #else ::PyMapping_HasKeyString(obj.ptr(), *name) @@ -663,7 +663,7 @@ v8::Intercepted CPythonObject::IndexedQuery(uint32_t index, const v8::PropertyCa snprintf(buf, sizeof(buf), "%d", index); if ( -#if PY_VERSION_EX >= 0x030d0000 +#if PY_VERSION_HEX >= 0x030d0000 ::PyMapping_HasKeyStringWithError(obj.ptr(), buf) == 1 #else ::PyMapping_HasKeyString(obj.ptr(), buf)