working around a possible bug in gcc 4.9.2-10ubuntu13

This commit is contained in:
Enno Rehling 2015-05-24 12:20:24 +02:00
parent 6260a45be5
commit 1371985776
1 changed files with 3 additions and 0 deletions

View File

@ -712,8 +712,11 @@ static void test_peasant_luck_effect(CuTest *tc) {
statistic_test(tc, 100, 0, 1000, 0, 0, 0);
statistic_test(tc, 100, 2, 1000, 0, 1, 1);
/*
statistic_test(tc, 1000, 400, 1000, 0, (int)(400 * 10 * 0.001 * .75),
(int)(400 * 10 * 0.001 * .75));
*/
statistic_test(tc, 1000, 400, 1000, 0, 3, 3);
statistic_test(tc, 1000, 1000, 2000, .5, 1, 501);
set_param(&global.parameters, "rules.peasants.growth.factor", "1");