From 4d1ee0bb5bbcbc9e5f28729cb5a95896503aaf60 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 24 Dec 2012 18:19:33 -0800 Subject: [PATCH] Fix a warning. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 9a88b7e9..5737bec9 100644 --- a/format.cc +++ b/format.cc @@ -90,7 +90,7 @@ struct IsLongDouble { enum {VALUE = 0}; }; template <> struct IsLongDouble { enum {VALUE = 1}; }; -inline unsigned CountDigits(unsigned long n) { +inline unsigned CountDigits(uint64_t n) { unsigned count = 1; for (;;) { // Integer division is slow so do it for a group of four digits instead