Fixed another clang compilation warning

This commit is contained in:
Benoit Steiner 2015-11-19 15:52:51 -08:00
parent 66ff9b2c6c
commit 0ad7c7b1ad

View File

@ -15,10 +15,10 @@
void test_signed_32bit() void test_signed_32bit()
{ {
// Divide by one // Divide by one
const Eigen::internal::TensorIntDivisor<int32_t, false> div(1); const Eigen::internal::TensorIntDivisor<int32_t, false> div_by_one(1);
for (int32_t j = 0; j < 25000; ++j) { for (int32_t j = 0; j < 25000; ++j) {
const int32_t fast_div = j / div; const int32_t fast_div = j / div_by_one;
const int32_t slow_div = j / 1; const int32_t slow_div = j / 1;
VERIFY_IS_EQUAL(fast_div, slow_div); VERIFY_IS_EQUAL(fast_div, slow_div);
} }