From 088115b86e5d81e3729f33fbf5584ff41d705af4 Mon Sep 17 00:00:00 2001 From: Colby Haskell Date: Sun, 5 Nov 2023 11:28:22 -0500 Subject: [PATCH] Fix static analysis warnings --- include/nlohmann/detail/input/input_adapters.hpp | 4 ++-- single_include/nlohmann/json.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)