Explorar el Código

Removed useless parentheses

Taddeus Kroes hace 12 años
padre
commit
a7f64c44ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) ->