[all-commits] [llvm/llvm-project] a21cf5: [libc] Fix use of cpp::numeric_limits<...>::digits...
Roland McGrath via All-commits
all-commits at lists.llvm.org
Fri Aug 9 13:09:45 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a21cf5663c3e757e98a396e47471af63bd4955b0
https://github.com/llvm/llvm-project/commit/a21cf5663c3e757e98a396e47471af63bd4955b0
Author: Roland McGrath <mcgrathr at google.com>
Date: 2024-08-09 (Fri, 09 Aug 2024)
Changed paths:
M libc/src/stdio/printf_core/parser.h
M libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp
Log Message:
-----------
[libc] Fix use of cpp::numeric_limits<...>::digits (#102674)
The previous change replaced INT_WIDTH with
cpp::numberic_limits<int>::digits, but these don't have the same
value. While INT_WIDTH == UINT_WIDTH, not so for ::digits, so
use cpp::numberic_limits<unsigned int>::digits et al instead for
the intended effects.
Bug: https://issues.fuchsia.dev/358196552
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list