Skip to content

Commit f5e0970

Browse files
committed
py/mpprint: Fix "%x" vs "%X" regression introduced in previous commit.
1 parent 5a10e63 commit f5e0970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/mpprint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args) {
511511
break;
512512
case 'x':
513513
case 'X': {
514-
char fmt_c = 'x' - *fmt + 'A';
514+
char fmt_c = *fmt - 'X' + 'A';
515515
mp_uint_t val;
516516
if (long_arg) {
517517
val = va_arg(args, unsigned long int);

0 commit comments

Comments
 (0)