aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-16 20:24:51 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-16 20:24:51 -0700
commitbb806f941c81cca140b7554eac130fd365df871f (patch)
tree69b982e47fd49d3a9beec895a1edc60bf4ae422c /src/analyze.cpp
parent6793548868749ac7638000182fe9b730179b2b82 (diff)
downloadzig-bb806f941c81cca140b7554eac130fd365df871f.tar.gz
zig-bb806f941c81cca140b7554eac130fd365df871f.zip
use PRIuMAX instead of PRIu64 for mingw
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index e73902f118..f45d66eee0 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -396,7 +396,7 @@ TypeTableEntry *get_array_type(CodeGen *g, TypeTableEntry *child_type, uint64_t
entry->zero_bits = (array_size == 0) || child_type->zero_bits;
buf_resize(&entry->name, 0);
- buf_appendf(&entry->name, "[%" PRIu64 "]%s", array_size, buf_ptr(&child_type->name));
+ buf_appendf(&entry->name, "[%" PRIuMAX "]%s", (uintmax_t)array_size, buf_ptr(&child_type->name));
if (!entry->zero_bits) {
uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref);
@@ -4158,9 +4158,9 @@ static TypeTableEntry *analyze_builtin_fn_call_expr(CodeGen *g, ImportTableEntry
uint64_t src_align = get_memcpy_align(g, src_type->data.pointer.child_type);
if (dest_align != src_align) {
add_node_error(g, dest_node, buf_sprintf(
- "misaligned memcpy, '%s' has alignment '%" PRIu64 ", '%s' has alignment %" PRIu64,
- buf_ptr(&dest_type->name), dest_align,
- buf_ptr(&src_type->name), src_align));
+ "misaligned memcpy, '%s' has alignment '%" PRIuMAX ", '%s' has alignment %" PRIuMAX,
+ buf_ptr(&dest_type->name), (uintmax_t)dest_align,
+ buf_ptr(&src_type->name), (uintmax_t)src_align));
}
}