diff options
author | truelight <truelight@openttd.org> | 2005-01-23 19:02:53 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-23 19:02:53 +0000 |
commit | 8edff7676545813089fad2a8a122e3e53b33b5e1 (patch) | |
tree | 4a3a7111132c95161e4962d36e89b647b4763113 /misc.c | |
parent | 2cf65953db4e8272744284af090b7c6bcb765f70 (diff) | |
download | openttd-8edff7676545813089fad2a8a122e3e53b33b5e1.tar.xz |
(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ static inline uint32 ROR(uint32 x, int n) #ifdef RANDOM_DEBUG #include "network_data.h" -uint32 DoRandom(uint line, char *file) +uint32 DoRandom(int line, const char *file) #else uint32 Random(void) #endif @@ -61,7 +61,7 @@ uint32 Random(void) } #ifdef RANDOM_DEBUG -uint DoRandomRange(uint max, uint line, char *file) +uint DoRandomRange(uint max, int line, const char *file) { return (uint16)DoRandom(line, file) * max >> 16; } |