diff options
| author | Michael Jones <michaelrj@google.com> | 2023-02-28 15:10:08 -0800 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2023-03-01 10:57:26 -0800 |
| commit | b39f1e5c13897b69c314febd014895a5ed23696e (patch) | |
| tree | 6e7f71b5a9ece2d6131305509efdde22b97a621d /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | 21fc42b2d594986a4ae28475b10c75bfe10d3bd2 (diff) | |
[libc] Fix printf %f rounding condition
When running the tbin2dec tests I found a rounding error in my code.
Upon inspection I realized it was due to a lack of parenthesis when
calculating the number of trailing digits. This patch fixes that mistake
and adds unit tests to catch regressions in future.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D145011
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
