Fix warnings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
bc69e7803f
commit
2e990ef7d3
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ static void driver(unsigned max_sz, unsigned max_val, unsigned num_ops, double u
|
|||
copies.push_back(q3);
|
||||
// read random positions of q3
|
||||
if (!empty(q3)) {
|
||||
for (unsigned j = 0; j < rand() % 5; j++) {
|
||||
for (int j = 0; j < rand() % 5; j++) {
|
||||
unsigned idx = rand() % size(q3);
|
||||
lean_assert(q3[idx] == q1[idx]);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ static void driver(unsigned max_sz, unsigned max_val, unsigned num_ops, double u
|
|||
f = static_cast<double>(std::rand() % 10000) / 10000.0;
|
||||
// read random positions of v3
|
||||
if (!empty(v3)) {
|
||||
for (unsigned j = 0; j < rand() % 5; j++) {
|
||||
for (int j = 0; j < rand() % 5; j++) {
|
||||
unsigned idx = rand() % size(v3);
|
||||
lean_assert(v3[idx] == v1[idx]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue