remove cast, replace %llu with % PRIu64

This commit is contained in:
liuchang0812 2014-09-23 01:10:46 +08:00
parent a7574d4fa1
commit 787cb4db29

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", static_cast<unsigned long long>(num));
snprintf(buf, sizeof(buf), "%" PRIu64, num);
str->append(buf);
}