diff --git a/include/nlohmann/detail/input/input_adapters.hpp b/include/nlohmann/detail/input/input_adapters.hpp index 30a6e9814..7c6144a44 100644 --- a/include/nlohmann/detail/input/input_adapters.hpp +++ b/include/nlohmann/detail/input/input_adapters.hpp @@ -143,7 +143,7 @@ template<> struct char_traits : std::char_traits { using char_type = unsigned char; - using int_type = unsigned long; + using int_type = uint64_t; // Redefine to_int_type function static int_type to_int_type(char_type c) @@ -162,7 +162,7 @@ template<> struct char_traits : std::char_traits { using char_type = signed char; - using int_type = unsigned long; + using int_type = uint64_t; // Redefine to_int_type function static int_type to_int_type(char_type c) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index a33626e61..870c83bee 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -6226,7 +6226,7 @@ template<> struct char_traits : std::char_traits { using char_type = unsigned char; - using int_type = unsigned long; + using int_type = uint64_t; // Redefine to_int_type function static int_type to_int_type(char_type c) @@ -6245,7 +6245,7 @@ template<> struct char_traits : std::char_traits { using char_type = signed char; - using int_type = unsigned long; + using int_type = uint64_t; // Redefine to_int_type function static int_type to_int_type(char_type c)