crypt.c
changeset 74 829976007e62
parent 56 966ad681f25d
child 77 49e0babccb23
--- a/crypt.c
+++ b/crypt.c
@@ -8,7 +8,7 @@
 #include <time.h>
 #include <crypt.h>
 
-#define GETRANDOM(max) ('a'+(int)((float)max*rand()/RAND_MAX+1.0))
+#define GETRANDOM(max) ('a'+(int)((float)(max)*rand()/RAND_MAX+1.0))
 
 int main (int argc, char **argv)
 {