From ecbfc79c1d2f13a7794abe1d7ce77d38cdad5dbf Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 27 Jul 2025 14:31:39 -0400 Subject: [PATCH] xo-reflect: bugfix is_i64 on linux (gcc / wsl2) --- src/reflect/TypeDescr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/reflect/TypeDescr.cpp b/src/reflect/TypeDescr.cpp index 8b40678..676225f 100644 --- a/src/reflect/TypeDescr.cpp +++ b/src/reflect/TypeDescr.cpp @@ -257,9 +257,11 @@ namespace xo { bool TypeDescrBase::is_i64() const { - static_assert(sizeof(long long) == 8); + // FIXME: on apple/clang may need to use long long - return Reflect::is_native(this); + static_assert(sizeof(std::int64_t) == 8); + + return Reflect::is_native(this); } bool