mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix GCC compiler warning
This commit is contained in:
parent
2923eafaca
commit
dfd790930c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue