We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bc84c2 + e6a7c63 commit 622393cCopy full SHA for 622393c
core/variant/binder_common.h
@@ -214,11 +214,11 @@ struct VariantCaster<char32_t> {
214
template <>
215
struct PtrToArg<char32_t> {
216
_FORCE_INLINE_ static char32_t convert(const void *p_ptr) {
217
- return char32_t(*reinterpret_cast<const int *>(p_ptr));
+ return char32_t(*reinterpret_cast<const int64_t *>(p_ptr));
218
}
219
typedef int64_t EncodeT;
220
_FORCE_INLINE_ static void encode(char32_t p_val, const void *p_ptr) {
221
- *(int *)p_ptr = p_val;
+ *(int64_t *)p_ptr = p_val;
222
223
};
224
0 commit comments