Nicolas Cannasse пре 12 година
родитељ
комит
7f29557461
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      interp.ml

+ 1 - 1
interp.ml

@@ -1711,7 +1711,7 @@ let std_lib =
 		);
 		"sys_getch", Fun1 (fun echo ->
 			match echo with
-			| VBool _ -> VInt (int_of_char (input_char Pervasives.stdin))
+			| VBool b -> VInt (Extc.getch b)
 			| _ -> error()
 		);
 		"sys_get_pid", Fun0 (fun() ->