@@ -705,6 +705,7 @@ let configure gen =
)
| TFloat s ->
write w s;
+ (if String.get s (String.length s - 1) = '.' then write w "0");
(match real_type e.etype with
| TType( { t_path = ([], "Single") }, [] ) -> write w "f"
| _ -> ()
@@ -866,6 +866,8 @@ let configure gen =
+ (* fix for Int notation, which only fit in a Float *)
+ (if not (String.contains s '.' || String.contains s 'e' || String.contains s 'E') then write w ".0");