diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 11:49:51 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 11:49:51 -0400 |
| commit | 752ab8212c7556ed714d1272582e57180b50c5a6 (patch) | |
| tree | 50d05d8e7512494fbbe16a27ed89d6a14b401ea5 /ast.c | |
| parent | 8b94c2c7f198babe64a2636538913cf67165709c (diff) | |
Split BigIntType out of IntType and switch to using enums for the size
of ints/nums
Diffstat (limited to 'ast.c')
| -rw-r--r-- | ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -99,8 +99,8 @@ CORD ast_to_xml(ast_t *ast) T(Nil, "<Nil>%r</Nil>", type_ast_to_xml(data.type)) T(Bool, "<Bool value=\"%s\" />", data.b ? "yes" : "no") T(Var, "<Var>%s</Var>", data.name) - T(Int, "<Int bits=\"%ld\">%s</Int>", data.bits, data.str) - T(Num, "<Num bits=\"%ld\">%g</Num>", data.bits, data.n) + T(Int, "<Int bits=\"%d\">%s</Int>", data.bits, data.str) + T(Num, "<Num bits=\"%d\">%g</Num>", data.bits, data.n) T(TextLiteral, "%r", xml_escape(data.cord)) T(TextJoin, "<Text%r>%r</Text>", data.lang ? CORD_all(" lang=\"", data.lang, "\"") : CORD_EMPTY, ast_list_to_xml(data.children)) T(Declare, "<Declare var=\"%r\">%r</Declare>", ast_to_xml(data.var), ast_to_xml(data.value)) |
