zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c45ba49b8b6e8abeb2e96d28860273247e61ab18 (tree)
parent d5087ccbc8729a252c6fd0d2fe71a55e4b136e3a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed,  8 Apr 2020 19:30:18 -0400

fix formatted printing warning

needed to use ZIG_PRI_u64 instead of %lu

Diffstat:
Msrc/ir.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ir.cpp b/src/ir.cpp @@ -17689,7 +17689,7 @@ static IrInstGen *ir_analyze_tuple_mult(IrAnalyze *ira, IrInst* source_instr, TypeStructField *src_field = op1_type->data.structure.fields[i % op1_field_count]; TypeStructField *new_field = new_type->data.structure.fields[i]; - new_field->name = buf_sprintf("%lu", i); + new_field->name = buf_sprintf("%" ZIG_PRI_u64, i); new_field->type_entry = src_field->type_entry; new_field->type_val = src_field->type_val; new_field->src_index = i;