Add %I64d/u for printf-style on windows.
This commit is contained in:
parent
3a951a66cb
commit
fcf8de5023
@ -485,6 +485,23 @@ void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
|
||||
// printf produces garbage when 'L' is omitted for long double, no
|
||||
// need to do the same.
|
||||
break;
|
||||
case 'I':
|
||||
if (t == '6') {
|
||||
++it;
|
||||
t = it != end ? *it : 0;
|
||||
if (t == '4') {
|
||||
++it;
|
||||
t = it != end ? *it : 0;
|
||||
convert_arg<long long>(arg, t);
|
||||
}
|
||||
else {
|
||||
convert_arg<long>(arg, t);
|
||||
}
|
||||
}
|
||||
else {
|
||||
convert_arg<long>(arg, t);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
--it;
|
||||
convert_arg<void>(arg, c);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user