Skip to content

Commit

Permalink
Fix GCC compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed May 5, 2015
1 parent 2923eaf commit dfd7909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unittest/test_random.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit dfd7909

Please sign in to comment.