fix wrong format specifier

closes #263
This commit is contained in:
Andrew Kelley 2017-02-22 15:36:57 -05:00
parent 786677f80c
commit b1ace32f23

View File

@ -8952,7 +8952,7 @@ static TypeTableEntry *ir_analyze_instruction_elem_ptr(IrAnalyze *ira, IrInstruc
} }
if (new_index >= mem_size) { if (new_index >= mem_size) {
ir_add_error_node(ira, elem_ptr_instruction->base.source_node, ir_add_error_node(ira, elem_ptr_instruction->base.source_node,
buf_sprintf("index %" PRIu64 " outside pointer of size %" PRIu64, index, old_size)); buf_sprintf("index %" PRIu64 " outside pointer of size %zu", index, old_size));
return ira->codegen->builtin_types.entry_invalid; return ira->codegen->builtin_types.entry_invalid;
} }
} else if (is_slice(array_type)) { } else if (is_slice(array_type)) {