summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-09-30 13:50:50 -0400
committerMadCamel <madcamel@gmail.com>2009-09-30 13:50:50 -0400
commitcf1920e296365c8323fd52b6d927766d296b59c6 (patch)
treeadb2d732b8243f017b1c1367222f80eaeb9b5313 /src/common/utils.h
parent765c84f370747e35902757b6771368009ae2a8f6 (diff)
downloadtmwa-cf1920e296365c8323fd52b6d927766d296b59c6.tar.gz
tmwa-cf1920e296365c8323fd52b6d927766d296b59c6.tar.bz2
tmwa-cf1920e296365c8323fd52b6d927766d296b59c6.tar.xz
tmwa-cf1920e296365c8323fd52b6d927766d296b59c6.zip
Revert "Added -fno-strict-aliasing to CFLAGS This will likely fix a few minor weirdnesses, and compiler warnings."
This reverts commit 765c84f370747e35902757b6771368009ae2a8f6.
Diffstat (limited to 'src/common/utils.h')
-rw-r--r--src/common/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index 3493808..0b006c3 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -38,5 +38,5 @@
* MRAND(10), returns 0-9.
* MPRAND(5,10) returns 5-14.
*/
-#define MRAND(mod) (mt_rand() % mod)
+#define MRAND(mod) (int) (mt_random() % mod)
#define MPRAND(add, mod) add + MRAND(mod)