Skip to content

Commit

Permalink
Update logging.cc
Browse files Browse the repository at this point in the history
fix cast style to cpp static_cast
  • Loading branch information
liuchang0812 committed Sep 22, 2014
1 parent 57fa3cc commit 7e0dcb9
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", (unsigned long long) num);
snprintf(buf, sizeof(buf), "%llu", static_cast(unsigned long long) num);
str->append(buf);
}

Expand Down

0 comments on commit 7e0dcb9

Please sign in to comment.