diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-25 23:29:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 23:29:30 +0200 |
commit | 56dafe916468f0c18e8ac77516c349e3dd8f93cb (patch) | |
tree | 176b9bb1217200cafec3613df6cf8369dcd73dd4 /core/variant/variant_setget.cpp | |
parent | c8444c3ee078e33c33287cf879aa5daecb962a80 (diff) | |
parent | b1d15c51bc1ded928b266ffc06459dd8b2046eb4 (diff) |
Merge pull request #49744 from reduz/implement-native-extensions
Implement native extension system
Diffstat (limited to 'core/variant/variant_setget.cpp')
-rw-r--r-- | core/variant/variant_setget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/variant_setget.cpp b/core/variant/variant_setget.cpp index 5cb329e69a..de1deace63 100644 --- a/core/variant/variant_setget.cpp +++ b/core/variant/variant_setget.cpp @@ -871,7 +871,7 @@ struct VariantKeyedSetGetDictionary { *r_valid = true; return VariantGetInternalPtr<Dictionary>::get_ptr(base)->has(*key); } - static bool ptr_has(const void *base, const void *key) { + static uint32_t ptr_has(const void *base, const void *key) { /* avoid ptrconvert for performance*/ const Dictionary &v = *reinterpret_cast<const Dictionary *>(base); return v.has(PtrToArg<Variant>::convert(key)); @@ -921,7 +921,7 @@ struct VariantKeyedSetGetObject { obj->getvar(*key, &exists); return exists; } - static bool ptr_has(const void *base, const void *key) { + static uint32_t ptr_has(const void *base, const void *key) { const Object *obj = PtrToArg<Object *>::convert(base); ERR_FAIL_COND_V(!obj, false); bool valid; |