Skip to content

Commit 3cf866b

Browse files
Fixed some more MSVC warnings (#24)
1 parent 2ee3689 commit 3cf866b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phtree/phtree_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct Id {
6262
++default_construct_count_;
6363
}
6464

65-
explicit Id(const size_t i) : _i{(int)i} {
65+
explicit Id(const size_t i) : _i{static_cast<int>(i)} {
6666
++construct_count_;
6767
};
6868

phtree/phtree_test_unique_ptr_values.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class IntRng {
4242
struct IdObj {
4343
IdObj() = default;
4444

45-
explicit IdObj(const int i) : _i(i){};
45+
explicit IdObj(const size_t i) : _i(static_cast<int>(i)){};
4646

4747
bool operator==(IdObj& rhs) {
4848
return _i == rhs._i;

0 commit comments

Comments
 (0)