We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee3689 commit 3cf866bCopy full SHA for 3cf866b
phtree/phtree_test.cc
@@ -62,7 +62,7 @@ struct Id {
62
++default_construct_count_;
63
}
64
65
- explicit Id(const size_t i) : _i{(int)i} {
+ explicit Id(const size_t i) : _i{static_cast<int>(i)} {
66
++construct_count_;
67
};
68
phtree/phtree_test_unique_ptr_values.cc
@@ -42,7 +42,7 @@ class IntRng {
42
struct IdObj {
43
IdObj() = default;
44
45
- explicit IdObj(const int i) : _i(i){};
+ explicit IdObj(const size_t i) : _i(static_cast<int>(i)){};
46
47
bool operator==(IdObj& rhs) {
48
return _i == rhs._i;
0 commit comments