From ead9029d76e764f1d78033237df39ec288ac6cd3 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Mon, 11 Nov 2024 17:01:17 +0300 Subject: [PATCH] core: fix compiler warnings --- src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index da9364f..42c8fdc 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -67,7 +67,7 @@ bool try_parse_uint8(std::string_view str, std::uint8_t & result) if (value > std::numeric_limits::max()) return false; - result = value; + result = static_cast(value); return true; } @@ -81,7 +81,7 @@ bool try_parse_uint16(std::string_view str, std::uint16_t & result) if (value > std::numeric_limits::max()) return false; - result = value; + result = static_cast(value); return true; } @@ -95,7 +95,7 @@ bool try_parse_uint32(std::string_view str, std::uint32_t & result) if (value > std::numeric_limits::max()) return false; - result = value; + result = static_cast(value); return true; }