Skip to content

Commit 5b31bbb

Browse files
committed
Fixing linter error
1 parent e01a160 commit 5b31bbb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

util/compression_test.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ class MyFlushBlockPolicy : public FlushBlockPolicy {
7373
auto total = compressed_count + rejected_count + bypassed_count;
7474
int rejection_percentage, bypassed_percentage, compressed_percentage;
7575
if (total != 0) {
76-
rejection_percentage = rejected_count * 100 / total;
77-
bypassed_percentage = bypassed_count * 100 / total;
78-
compressed_percentage = compressed_count * 100 / total;
76+
rejection_percentage = static_cast<int>(rejected_count * 100 / total);
77+
bypassed_percentage = static_cast<int>(bypassed_count * 100 / total);
78+
compressed_percentage =
79+
static_cast<int>(compressed_count * 100 / total);
7980
}
8081
// use mulitple of 10 to get correct assertion
8182
switch (multiple_of_10) {

0 commit comments

Comments
 (0)