Update logging.cc

fix cast style to cpp static_cast
This commit is contained in:
whu_liuchang 2014-09-22 23:24:53 +08:00
parent 57fa3cc5b3
commit 7e0dcb953f

View File

@ -45,7 +45,7 @@ int AppendHumanBytes(uint64_t bytes, char* output, int len) {
void AppendNumberTo(std::string* str, uint64_t num) {
char buf[30];
snprintf(buf, sizeof(buf), "%llu", (unsigned long long) num);
snprintf(buf, sizeof(buf), "%llu", static_cast(unsigned long long) num);
str->append(buf);
}