mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-01 06:39:25 +01:00
uintptr -> fallback_uintptr to avoid confusion with uintptr_t
This commit is contained in:
@@ -229,7 +229,7 @@ FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
||||
|
||||
namespace internal {
|
||||
|
||||
template <> FMT_FUNC int count_digits<4>(internal::uintptr n) {
|
||||
template <> FMT_FUNC int count_digits<4>(internal::fallback_uintptr n) {
|
||||
// Assume little endian; pointer formatting is implementation-defined anyway.
|
||||
int i = static_cast<int>(sizeof(void*)) - 1;
|
||||
while (i > 0 && n.value[i] == 0) --i;
|
||||
|
||||
Reference in New Issue
Block a user