Skip to content

Commit 05681d0

Browse files
committed
#7 use 32bit type for hex functions.
1 parent 0d33ae5 commit 05681d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TextUtilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ char hexChar(uint8_t val) {
112112
}
113113

114114

115-
void intToHexString(char* buffer, size_t bufferSize, unsigned int input, int digits, bool with0x) {
115+
void intToHexString(char* buffer, size_t bufferSize, uint32_t input, int digits, bool with0x) {
116116
buffer[0] = 0;
117117
if(with0x) {
118118
if(bufferSize < (digits + 3)) {

src/TextUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ uint8_t hexValueOf(char val);
115115
* @param digits the number of FIXED digits
116116
* @param with0x if 0x should be included at the beginning
117117
*/
118-
void intToHexString(char* buffer, size_t bufferSize, unsigned int input, int digits, bool with0x);
118+
void intToHexString(char* buffer, size_t bufferSize, uint32_t input, int digits, bool with0x);
119119

120120
/**
121121
* Ensure that a float is always positive.

0 commit comments

Comments
 (0)