a_star: don't crash on deserialization errors and limit static types
[nit.git] / tests / shootout_binarytrees.nit
index a171b58..5eea74f 100644 (file)
@@ -75,7 +75,7 @@ var long_lived_tree = bottom_up_tree(0, max_depth)
 
 var depth = min_depth
 while depth <= max_depth do
-    var iterations = 1.lshift(max_depth - depth + min_depth)
+    var iterations = 1 << (max_depth - depth + min_depth)
     var check_res = 0
 
     for i in [1..(iterations+1)[ do