소스 검색

Removed useless parentheses

Taddeus Kroes 12 년 전
부모
커밋
a7f64c44ce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) ->