correct printf handling of %x with long ints

Fixes #3352
This commit is contained in:
Kurtis Rader
2017-02-20 17:58:08 -08:00
parent 9f5ce04229
commit 3d0a377e26
4 changed files with 18 additions and 0 deletions

View File

@@ -437,6 +437,8 @@ void builtin_printf_state_t::print_direc(const wchar_t *start, size_t length, wc
// Create a copy of the % directive, with an intmax_t-wide width modifier substituted for any
// existing integer length modifier.
switch (conversion) {
case L'x':
case L'X':
case L'd':
case L'i':
case L'u': {