Bug correction in names of C functions for converting constructors to string.
This commit is contained in:
parent
2d00f0a91c
commit
d4fe017864
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ let main_def_of_class_def cd =
|
|||
| Types.Tid id when id = Initial.pfloat -> None
|
||||
| Types.Tid id when id = Initial.pint -> None
|
||||
| Types.Tid id when id = Initial.pbool -> None
|
||||
| Tid { name = n } -> Some n
|
||||
| Tid tn -> Some (cname_of_qn tn)
|
||||
in
|
||||
let cprint_string s = Csexpr (Cfun_call ("printf", [Cconst (Cstrlit s)])) in
|
||||
|
||||
|
|
Loading…
Reference in a new issue