[all-commits] [llvm/llvm-project] 6e863c: [libc] Fix incorrect printing for alt mode ints (#...
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Oct 27 11:04:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e863c40738f6db56e98dc54458b82fc9b7d597f
https://github.com/llvm/llvm-project/commit/6e863c40738f6db56e98dc54458b82fc9b7d597f
Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
Date: 2023-10-27 (Fri, 27 Oct 2023)
Changed paths:
M libc/src/stdio/printf_core/int_converter.h
M libc/test/src/stdio/sprintf_test.cpp
Log Message:
-----------
[libc] Fix incorrect printing for alt mode ints (#70252)
Previously, our printf would incorrectly handle conversions like
("%#x",0) and ("%#o",0). This patch corrects the behavior to match what
is described in the standard.
More information about the All-commits
mailing list