aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJimmi Holst Christensen <jimmiholstchristensen@gmail.com>2018-04-28 17:57:47 +0200
committerJimmi Holst Christensen <jimmiholstchristensen@gmail.com>2018-04-28 17:57:47 +0200
commit341f8c1e8680aa3cfbeba6833f85df00355a95ef (patch)
treeec6455ec65b5b675992f31b1109048bb31f3fbd0 /src
parentfba0347ec43fb5c06b5ac9bec541b740d95194fe (diff)
downloadzig-341f8c1e8680aa3cfbeba6833f85df00355a95ef.tar.gz
zig-341f8c1e8680aa3cfbeba6833f85df00355a95ef.zip
Fixed wrong formatting for arg_index when reporting @ArgType error
Diffstat (limited to 'src')
-rw-r--r--src/ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 641b8fc30c..4bf8240472 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -17874,8 +17874,8 @@ static TypeTableEntry *ir_analyze_instruction_arg_type(IrAnalyze *ira, IrInstruc
assert(fn_type->data.fn.is_generic);
ir_add_error(ira, arg_index_inst,
- buf_sprintf("@ArgType could not resolve the type of arg %" ZIG_PRI_usize " because '%s' is generic",
- arg_index, buf_ptr(&fn_type->name)));
+ buf_sprintf("@ArgType could not resolve the type of arg %" ZIG_PRI_u64 " because '%s' is generic",
+ arg_index, buf_ptr(&fn_type->name)));
return ira->codegen->builtin_types.entry_invalid;
}