mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 14:55:13 -05:00
Fix GCC compiler warning
This commit is contained in:
parent
2923eafaca
commit
dfd790930c
@ -173,8 +173,8 @@ void TestRandom::testPcgRandomNormalDist()
|
|||||||
UASSERT(ubound <= max);
|
UASSERT(ubound <= max);
|
||||||
|
|
||||||
int accum = 0;
|
int accum = 0;
|
||||||
for (int i = lbound; i != ubound; i++)
|
for (int j = lbound; j != ubound; j++)
|
||||||
accum += bins[i - min];
|
accum += bins[j - min];
|
||||||
|
|
||||||
float actual = (float)accum / num_samples;
|
float actual = (float)accum / num_samples;
|
||||||
UASSERT(fabs(actual - prediction_intervals[i]) < 0.02);
|
UASSERT(fabs(actual - prediction_intervals[i]) < 0.02);
|
||||||
|
Loading…
Reference in New Issue
Block a user