From d3a0bd728544efcb1f39a9727c02200ceb96d975 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Fri, 7 Jun 2024 17:09:03 +0800 Subject: [PATCH] fixed size of int in api --- lolly/data/numeral.cpp | 4 ++-- lolly/data/numeral.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lolly/data/numeral.cpp b/lolly/data/numeral.cpp index 028bd383..d50fd59b 100644 --- a/lolly/data/numeral.cpp +++ b/lolly/data/numeral.cpp @@ -251,9 +251,9 @@ as_hexadecimal (int i, int len) { } string -as_hexadecimal (unsigned int i) { +as_hexadecimal (uint32_t i) { string result; - to_Hex_positive ((unsigned) i, result); + to_Hex_positive (i, result); return result; } diff --git a/lolly/data/numeral.hpp b/lolly/data/numeral.hpp index 9d2f28af..4ba9eea4 100644 --- a/lolly/data/numeral.hpp +++ b/lolly/data/numeral.hpp @@ -98,7 +98,7 @@ string as_hexadecimal (int i, int length); * @param i The integer to be converted to a hexadecimal string. * @return The hexadecimal string representation of the input integer. */ -string as_hexadecimal (unsigned int i); +string as_hexadecimal (uint32_t i); } // namespace data } // namespace lolly