1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-21 20:10:17 +02:00

Fix GCC compiler warning

This commit is contained in:
ShadowNinja 2015-05-04 19:59:36 -04:00
parent 2923eafaca
commit dfd790930c

View File

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