Skip to content

Commit

Permalink
remove cast, replace %llu with % PRIu64
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchang0812 committed Sep 22, 2014
1 parent a7574d4 commit 787cb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/logging.cc
Expand Up @@ -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);
}

Expand Down

0 comments on commit 787cb4d

Please sign in to comment.