From bbbab9b2378007c8cea9eef246af098fd6343721 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) --- xo-reflect/src/reflect/TypeDescr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xo-reflect/src/reflect/TypeDescr.cpp b/xo-reflect/src/reflect/TypeDescr.cpp index 8b40678f..676225f2 100644 --- a/xo-reflect/src/reflect/TypeDescr.cpp +++ b/xo-reflect/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