Fix warnings

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-09-12 14:02:40 -07:00
parent bc69e7803f
commit 2e990ef7d3
2 changed files with 2 additions and 2 deletions

View file

@ -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]);
}

View file

@ -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]);
}