From 937c1711c5163660bfbddc954f79dab8a8772443 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Thu, 7 Nov 2024 20:49:54 +0200 Subject: [PATCH] Changed int24 to be signed --- openVulkanoCpp/Math/Int24.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openVulkanoCpp/Math/Int24.hpp b/openVulkanoCpp/Math/Int24.hpp index 8eb8f5b..21397a6 100644 --- a/openVulkanoCpp/Math/Int24.hpp +++ b/openVulkanoCpp/Math/Int24.hpp @@ -252,16 +252,16 @@ namespace std { public: static const bool is_specialized = true; - static constexpr OpenVulkano::int24 min() { return OpenVulkano::int24(0); } - static constexpr OpenVulkano::int24 max() { return OpenVulkano::int24(0xFFFFFF); } + static constexpr OpenVulkano::int24 min() { return OpenVulkano::int24(0x800000); } + static constexpr OpenVulkano::int24 max() { return OpenVulkano::int24(0x7FFFFF); } static const int radix = 2; - static const int digits = 24; - static const int digits10 = 7; - static const bool is_signed = false; + static const int digits = 23; + static const int digits10 = 6; + static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const bool traps = false; - static const bool is_modulo = true; + static const bool is_modulo = false; static const bool is_bounded = true; static constexpr OpenVulkano::int24 epsilon() { return OpenVulkano::int24(1); }