Skip to content

Commit 07a0fd4

Browse files
committed
Actually honour the radix parameter to itoa.
1 parent fe08974 commit 07a0fd4

File tree

1 file changed

+1
-1
lines changed
  • lang/cem/libcc.ansi/core/printf

1 file changed

+1
-1
lines changed

lang/cem/libcc.ansi/core/printf/itoa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void itoa(long value, char* buffer, int radix)
77
*buffer++ = '-';
88
value = -value;
99
}
10-
buffer = _i_compute(value, 10, buffer, 0);
10+
buffer = _i_compute(value, radix, buffer, 0);
1111
*buffer++ = '\0';
1212
}
1313

0 commit comments

Comments
 (0)