Commits

Anonymous committed 521ca31

fix max_len vs len

  • Participants
  • Parent commits 4e603b7

Comments (0)

Files changed (1)

 int sol[38], sol_[38];
 int num, len, p1_len = 0, p2_len;
 
-int max_len = 30;
+int max_len = 0;
 int num_sol = 0;
 int print_all = 1;
 int timeout = 0;
 
 		memset(sol, -1, sizeof(sol));
 		num = 0;
-		len = max_len;
+		len = max_len ? max_len : 30;
 		timeout = 0;
 		copy_cube(0, co_, eo_, cp_, ep_);