File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ static string toHex8(const uint8* data, psize size) noexcept
8080 * @brief Converts hexadecimal string to the 32bit integer value.
8181 * @param[in] hex target hexadecimal string
8282 */
83- static uint32 toInt32 (const string& hex) noexcept { return std::stoul (hex, nullptr , 16 ); }
83+ static uint32 toInt32 (const string& hex) noexcept { return (uint32) std::stoul (hex, nullptr , 16 ); }
8484/* *
8585 * @brief Converts hexadecimal string to the 64bit integer value.
8686 * @param[in] hex target hexadecimal string
8787 */
88- static uint64 toInt64 (const string& hex) noexcept { return std::stoull (hex, nullptr , 16 ); }
88+ static uint64 toInt64 (const string& hex) noexcept { return (uint64) std::stoull (hex, nullptr , 16 ); }
8989
90- } // namespace math
90+ } // namespace math
You can’t perform that action at this time.
0 commit comments