From 0ab013ad45d36a5054901a4744ab676b855d6896 Mon Sep 17 00:00:00 2001 From: Rinzii Date: Sat, 6 Apr 2024 16:06:22 -0400 Subject: [PATCH] More cleanup and fix some bugs in msvc --- include/ccmath/internal/support/limits.hpp | 2 +- include/ccmath/internal/types/uint.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ccmath/internal/support/limits.hpp b/include/ccmath/internal/support/limits.hpp index a1ae6708..54ef5d9f 100644 --- a/include/ccmath/internal/support/limits.hpp +++ b/include/ccmath/internal/support/limits.hpp @@ -17,7 +17,7 @@ namespace ccm::support { - enum class float_round_style : std::int8_t + enum float_round_style : std::int8_t { round_indeterminate = -1, round_toward_zero = 0, diff --git a/include/ccmath/internal/types/uint.hpp b/include/ccmath/internal/types/uint.hpp index b5d4200a..13141e80 100644 --- a/include/ccmath/internal/types/uint.hpp +++ b/include/ccmath/internal/types/uint.hpp @@ -16,9 +16,9 @@ #include "ccmath/internal/predef/unlikely.hpp" #include "ccmath/internal/predef/compiler_warnings_and_errors.hpp" // Required to disable -fpermissive #include "ccmath/internal/support/bits.hpp" +#include "ccmath/internal/support/limits.hpp" #include "ccmath/internal/support/math_support.hpp" #include "ccmath/internal/support/type_identity.hpp" -#include "ccmath/internal/support/limits.hpp" #include #include // For std::size_t @@ -36,7 +36,7 @@ namespace ccm::internal { // This is a workaround to get -Wpedantic to not complain about the use of - // unsigned __int128 in a non-iso function. + // unsigned __int128, a non-iso type, inside of an iso function. __extension__ using uint128_t = unsigned __int128; } // namespace ccm::internal #endif // defined(__SIZEOF_INT128__)