From d9b69376346d4cc5a367202e12395f42f17244e1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 26 Mar 2006 14:03:50 +0000 Subject: [PATCH] (sd): Supply missing parenthesis for a cast from double to int. The cast is only there to express intent, it doesn't change the meaning of the code. --- src/lib/subs/fortdef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/fortdef.c b/src/lib/subs/fortdef.c index 29579937..23b78504 100644 --- a/src/lib/subs/fortdef.c +++ b/src/lib/subs/fortdef.c @@ -144,7 +144,7 @@ sd(natid att, natid own, coord x, coord y, int noisy, int defending, } } } - return (int)100 - eff * 100; + return (int)(100 - eff * 100); } int