From 1b790a34c493380a282d1eda5c4a5abdbb0ee71a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 13 Apr 2024 00:07:40 -0500 Subject: [PATCH] [ox/std] Fix Signed_c and Unsigned_c --- deps/ox/src/ox/std/typetraits.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/ox/src/ox/std/typetraits.hpp b/deps/ox/src/ox/std/typetraits.hpp index fbc92709..5810b245 100644 --- a/deps/ox/src/ox/std/typetraits.hpp +++ b/deps/ox/src/ox/std/typetraits.hpp @@ -159,11 +159,11 @@ constexpr bool is_class_v = is_class(); template constexpr bool is_signed_v = integral_constant::value; -template -concept Signed_c = is_signed_v && sizeof(T) == 8 * bits; +template +concept Signed_c = is_signed_v && sizeof(T) == bits / 8; -template -concept Unsigned_c = !is_signed_v && sizeof(T) == 8 * bits; +template +concept Unsigned_c = !is_signed_v && sizeof(T) == bits / 8; template struct is_same: false_type {};