We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f07086 + a02f4b4 commit d94965fCopy full SHA for d94965f
platform/source/minimal-printf/mbed_printf_implementation.c
@@ -220,12 +220,12 @@ static void mbed_minimal_formatted_string_hexadecimal(char *buffer, size_t lengt
220
unsigned int nibble_one = (output >> 4);
221
unsigned int nibble_two = (output & 0x0F);
222
223
- const char int2hex_lower[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
224
- '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
225
- };
226
- const char int2hex_upper[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
227
- '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
228
+ static const char int2hex_lower[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
+ '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
+ };
+ static const char int2hex_upper[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
+ '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
229
const char *int2hex = upper ? int2hex_upper : int2hex_lower;
230
231
if (print_leading_zero || nibble_one != 0) {
0 commit comments