Forráskód Böngészése

Removed warning for floating-point division by zero

Taddeus Kroes 12 éve
szülő
commit
0e0c62d5a7
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      phases/typecheck.ml

+ 1 - 1
phases/typecheck.ml

@@ -141,7 +141,7 @@ let rec typecheck node =
     (* Check for division by zero *)
     begin
       match (op, right) with
-      | (Div, Const ((IntVal 0l | FloatVal 0.0), _)) ->
+      | (Div, Const (IntVal 0l, _)) ->
         node_warning right "division by zero"
       | _ -> ()
     end;