diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-16 20:24:51 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-16 20:24:51 -0700 |
| commit | bb806f941c81cca140b7554eac130fd365df871f (patch) | |
| tree | 69b982e47fd49d3a9beec895a1edc60bf4ae422c /src/ast_render.cpp | |
| parent | 6793548868749ac7638000182fe9b730179b2b82 (diff) | |
| download | zig-bb806f941c81cca140b7554eac130fd365df871f.tar.gz zig-bb806f941c81cca140b7554eac130fd365df871f.zip | |
use PRIuMAX instead of PRIu64 for mingw
Diffstat (limited to 'src/ast_render.cpp')
| -rw-r--r-- | src/ast_render.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp index 118eee8f2c..8a86cad08d 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 %" PRIu64 "\n", name, node->data.number_literal.data.x_uint); + fprintf(f, "%s uint %" PRIuMAX "\n", name, (uintmax_t)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, "%" PRIu64, node->data.number_literal.data.x_uint); + fprintf(ar->f, "%" PRIuMAX, (uintmax_t)node->data.number_literal.data.x_uint); break; case NumLitFloat: fprintf(ar->f, "%f", node->data.number_literal.data.x_float); |
