Quellcode durchsuchen

Removed useless parentheses

Taddeus Kroes vor 12 Jahren
Ursprung
Commit
a7f64c44ce
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      phases/typecheck.ml

+ 1 - 1
phases/typecheck.ml

@@ -140,7 +140,7 @@ let rec typecheck node =
   | TypeCast (ctype, value, ann) ->
     let value = typecheck value in
     check_type_op [Bool; Int; Float] "typecast" value;
-    TypeCast (ctype, value, Type (ctype) :: ann)
+    TypeCast (ctype, value, Type ctype :: ann)
 
   (* Array allocation dimensions must have type int *)
   | Allocate (dec, dims, ann) ->