Ver Fonte

Merge pull request #3479 from Gama11/float_f

Display TFloat without an "f" in genxml
Simon Krajewski há 11 anos atrás
pai
commit
6bcd3f144a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -860,7 +860,7 @@ let s_expr_kind e =
 
 let s_const = function
 	| TInt i -> Int32.to_string i
-	| TFloat s -> s ^ "f"
+	| TFloat s -> s
 	| TString s -> Printf.sprintf "\"%s\"" (Ast.s_escape s)
 	| TBool b -> if b then "true" else "false"
 	| TNull -> "null"