Explorar o código

Removed useless parentheses

Taddeus Kroes %!s(int64=12) %!d(string=hai) anos
pai
achega
a7f64c44ce
Modificáronse 1 ficheiros con 1 adicións e 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) ->