aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-16 20:34:45 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-16 21:43:38 -0700
commit06398a22d0905e7e45ee7bdf4755aeee3b3fc1b0 (patch)
treebb15986ed033624e04fc82a96bd4f50da244963e /src/ast_render.cpp
parentbb806f941c81cca140b7554eac130fd365df871f (diff)
downloadzig-06398a22d0905e7e45ee7bdf4755aeee3b3fc1b0.tar.gz
zig-06398a22d0905e7e45ee7bdf4755aeee3b3fc1b0.zip
back to normal print specifiers
disable warnings for format specifiers on mingw since the compiler emits bogus warnings
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index 8a86cad08d..118eee8f2c 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -351,7 +351,7 @@ void ast_print(FILE *f, AstNode *node, int indent) {
NumLit kind = node->data.number_literal.kind;
const char *name = node_type_str(node->type);
if (kind == NumLitUInt) {
- fprintf(f, "%s uint %" PRIuMAX "\n", name, (uintmax_t)node->data.number_literal.data.x_uint);
+ fprintf(f, "%s uint %" PRIu64 "\n", name, node->data.number_literal.data.x_uint);
} else {
fprintf(f, "%s float %f\n", name, node->data.number_literal.data.x_float);
}
@@ -679,7 +679,7 @@ static void render_node(AstRender *ar, AstNode *node) {
case NodeTypeNumberLiteral:
switch (node->data.number_literal.kind) {
case NumLitUInt:
- fprintf(ar->f, "%" PRIuMAX, (uintmax_t)node->data.number_literal.data.x_uint);
+ fprintf(ar->f, "%" PRIu64, node->data.number_literal.data.x_uint);
break;
case NumLitFloat:
fprintf(ar->f, "%f", node->data.number_literal.data.x_float);