From d2f3ada31272aa651aabb23940a3edbfca16b70e Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 27 Sep 2019 09:13:06 +0300 Subject: [PATCH] bf_t: Remove lib dependency --- Utilities/BitField.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Utilities/BitField.h b/Utilities/BitField.h index 39f5a5b380..c2903a0c5d 100644 --- a/Utilities/BitField.h +++ b/Utilities/BitField.h @@ -1,7 +1,6 @@ -#pragma once +#pragma once #include "types.h" -#include template struct bf_base @@ -17,7 +16,7 @@ struct bf_base static constexpr uint bitsize = N; // All ones mask - static constexpr utype mask1 = std::numeric_limits::max(); + static constexpr utype mask1 = static_cast(UINTMAX_MAX); // Value mask static constexpr utype vmask = mask1 >> (bitmax - bitsize);