diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-05-04 19:59:36 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-05-04 20:01:10 -0400 |
commit | dfd790930c8c1464ead730999c3ac9677d130360 (patch) | |
tree | 075dc35a8746b4c4278400cd325b7bee3cc0fece /src | |
parent | 2923eafaca929e129ba81504676d3770cff5f681 (diff) | |
download | minetest-dfd790930c8c1464ead730999c3ac9677d130360.tar.gz minetest-dfd790930c8c1464ead730999c3ac9677d130360.tar.bz2 minetest-dfd790930c8c1464ead730999c3ac9677d130360.zip |
Fix GCC compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/unittest/test_random.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unittest/test_random.cpp b/src/unittest/test_random.cpp index 81cf9ae28..20cfca334 100644 --- a/src/unittest/test_random.cpp +++ b/src/unittest/test_random.cpp @@ -173,8 +173,8 @@ void TestRandom::testPcgRandomNormalDist() UASSERT(ubound <= max); int accum = 0; - for (int i = lbound; i != ubound; i++) - accum += bins[i - min]; + for (int j = lbound; j != ubound; j++) + accum += bins[j - min]; float actual = (float)accum / num_samples; UASSERT(fabs(actual - prediction_intervals[i]) < 0.02); |