# HG changeset patch # User Sebastien Jodogne # Date 1778518112 -7200 # Node ID ca9a86f8755b0a7dab986ba25fcbc505216bd437 # Parent bf0499be72130d129e3ce757f3e0de0ad57b1da8 fix warnings diff -r bf0499be7213 -r ca9a86f8755b OrthancFramework/Sources/Toolbox.cpp --- a/OrthancFramework/Sources/Toolbox.cpp Mon May 11 18:25:51 2026 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Mon May 11 18:48:32 2026 +0200 @@ -1814,7 +1814,7 @@ const std::string& key, unsigned int defaultValue) { - if (defaultValue > std::numeric_limits::max()) + if (defaultValue > static_cast(std::numeric_limits::max())) { throw OrthancException(ErrorCode_InternalError, "Default value too large to fit in a int"); } diff -r bf0499be7213 -r ca9a86f8755b OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Mon May 11 18:25:51 2026 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Mon May 11 18:48:32 2026 +0200 @@ -977,7 +977,7 @@ return true; case Json::uintValue: - if (configuration_[key].asUInt() > std::numeric_limits::max()) + if (configuration_[key].asUInt() > static_cast(std::numeric_limits::max())) { ORTHANC_PLUGINS_LOG_ERROR("The configuration option \"" + GetPath(key) + "\" is too large to fit in an integer");