]> git.pond.sub.org Git - empserver/commitdiff
(sd): Supply missing parenthesis for a cast from double to int. The
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Mar 2006 14:03:50 +0000 (14:03 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Mar 2006 14:03:50 +0000 (14:03 +0000)
cast is only there to express intent, it doesn't change the meaning of
the code.

src/lib/subs/fortdef.c

index 29579937167e91f154a509b51c717016d42cad9d..23b785043159fc897092b48f707eeaba3c09cec7 100644 (file)
@@ -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