files.c
changeset 74 829976007e62
parent 56 966ad681f25d
child 77 49e0babccb23
--- a/files.c
+++ b/files.c
@@ -14,7 +14,7 @@
 #define  MAXDIRS 1000
 #define MAXFILES 1000
 
-#define GETRANDOM(max) (1+(int)((float)max*rand()/RAND_MAX+1.0))
+#define GETRANDOM(max) (1+(int)((float)(max)*rand()/RAND_MAX+1.0))
 
 char *GetRandomNumberString ()
 {