summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-09-30 13:42:54 -0400
committerMadCamel <madcamel@gmail.com>2009-09-30 13:42:54 -0400
commitbf517943387f364ad7b11854d803a84612f8cf60 (patch)
tree5a2d64474535e6717cc8f186ff684618da00f1b1 /src/common/utils.h
parentb396c9ae5d7fab3e13cff70e2a8ebc080aeeb472 (diff)
downloadtmwa-bf517943387f364ad7b11854d803a84612f8cf60.tar.gz
tmwa-bf517943387f364ad7b11854d803a84612f8cf60.tar.bz2
tmwa-bf517943387f364ad7b11854d803a84612f8cf60.tar.xz
tmwa-bf517943387f364ad7b11854d803a84612f8cf60.zip
Added -fno-strict-aliasing to CFLAGS
This will likely fix a few minor weirdnesses, and compiler warnings.
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 0b006c3..3493808 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) (int) (mt_random() % mod)
+#define MRAND(mod) (mt_rand() % mod)
#define MPRAND(add, mod) add + MRAND(mod)