Moving test_count_digits to test-impl-test.cc then count_digits<4>(internal::uintptr_t) shall not be exported

This commit is contained in:
denchat 2019-05-07 22:18:44 +07:00 committed by GitHub
parent 25355c6e9d
commit 5dd7989c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,7 +749,7 @@ inline int count_digits(uint64_t n) {
#endif #endif
// Counts the number of digits in n. BITS = log2(radix). // Counts the number of digits in n. BITS = log2(radix).
template <unsigned BITS, typename UInt> inline FMT_EXTERN_TEMPLATE_API int count_digits(UInt n) { template <unsigned BITS, typename UInt> inline int count_digits(UInt n) {
int num_digits = 0; int num_digits = 0;
do { do {
++num_digits; ++num_digits;