vector.cc
changeset 74 829976007e62
parent 54 c064ce9f40f5
child 77 49e0babccb23
--- a/vector.cc
+++ b/vector.cc
@@ -7,7 +7,7 @@
 #include <cmath>
 #include <ctime>
 
-#define GETRANDOM(max) (1+(int)((float)max*rand()/RAND_MAX+1.0))
+#define GETRANDOM(max) (1+(int)((float)(max)*rand()/RAND_MAX+1.0))
 #define MAX 6
 
 static int refCounter = 0;