--- 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;