File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ TEST(SparseMatrix, ZeroVector) {
69
69
std::vector<std::pair<std::pair<I, I>, T>> base;
70
70
for (int i = 0 ; i < m; i++) {
71
71
for (int j = 0 ; j < k; j++) {
72
- base.push_back ({{i, j}, i + j});
72
+ base.push_back ({{i, j}, static_cast < float >( i + j) });
73
73
}
74
74
}
75
75
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ TEST(SparseMatrix, IterationForward) {
11
11
std::vector<std::pair<std::pair<I, I>, T>> base;
12
12
for (int i = 0 ; i < m; i++) {
13
13
for (int j = 0 ; j < k; j++) {
14
- base.push_back ({{i, j}, i + j});
14
+ base.push_back ({{i, j}, static_cast < float >( i + j) });
15
15
}
16
16
}
17
17
std::vector<std::pair<std::pair<I, I>, T>> reference (base.size ());
@@ -43,7 +43,7 @@ TEST(SparseMatrix, IterationReverse) {
43
43
std::vector<std::pair<std::pair<I, I>, T>> base;
44
44
for (int i = 0 ; i < m; i++) {
45
45
for (int j = 0 ; j < k; j++) {
46
- base.push_back ({{i, j}, i + j});
46
+ base.push_back ({{i, j}, static_cast < float >( i + j) });
47
47
}
48
48
}
49
49
std::vector<std::pair<std::pair<I, I>, T>> reference (base.size ());
You can’t perform that action at this time.
0 commit comments