Skip to content

Commit c3d5031

Browse files
committed
Fix Xcode warnings
1 parent 9c67558 commit c3d5031

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/math/hex.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)