tree.c
changeset 74 829976007e62
parent 61 4b4c97f179da
child 77 49e0babccb23
--- a/tree.c
+++ b/tree.c
@@ -7,7 +7,7 @@
 #include <stdlib.h>
 #include <time.h>
 
-#define GETRANDOM(max) (1+(int)((float)max*rand()/RAND_MAX+1.0))
+#define GETRANDOM(max) (1+(int)((float)(max)*rand()/RAND_MAX+1.0))
 
 struct T {
     int data;