Skip to content

Commit 7e0dcb9

Browse files
committed
Update logging.cc
fix cast style to cpp static_cast
1 parent 57fa3cc commit 7e0dcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/logging.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int AppendHumanBytes(uint64_t bytes, char* output, int len) {
4545

4646
void AppendNumberTo(std::string* str, uint64_t num) {
4747
char buf[30];
48-
snprintf(buf, sizeof(buf), "%llu", (unsigned long long) num);
48+
snprintf(buf, sizeof(buf), "%llu", static_cast(unsigned long long) num);
4949
str->append(buf);
5050
}
5151

0 commit comments

Comments
 (0)