Skip to content

Commit

Permalink
fixed size of int in api
Browse files Browse the repository at this point in the history
  • Loading branch information
jingkaimori committed Jun 7, 2024
1 parent 8cbdff9 commit d3a0bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lolly/data/numeral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion lolly/data/numeral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d3a0bd7

Please sign in to comment.