projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2923eaf
)
Fix GCC compiler warning
author
ShadowNinja
<shadowninja@minetest.net>
Mon, 4 May 2015 23:59:36 +0000
(19:59 -0400)
committer
ShadowNinja
<shadowninja@minetest.net>
Tue, 5 May 2015 00:01:10 +0000
(20:01 -0400)
src/unittest/test_random.cpp
patch
|
blob
|
history
diff --git
a/src/unittest/test_random.cpp
b/src/unittest/test_random.cpp
index 81cf9ae28051ecfe1b953d068eb2315e82e62d20..20cfca3343cfefc2f7b97d5ebf327442eb9167d0 100644
(file)
--- 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);