From 0c3e310e3902563a1b4f65056e43ff255f0a76f6 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 May 2015 12:20:24 +0200 Subject: [PATCH] working around floating point inconsistencies on 32 bit x86s --- src/laws.test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/laws.test.c b/src/laws.test.c index a70f79b38..987b27773 100644 --- a/src/laws.test.c +++ b/src/laws.test.c @@ -713,8 +713,7 @@ 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");