authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-23 11:40:22-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-01-23 11:40:22-05:00
logc2838f24429d00debf43493c48caf739f57db023
tree285a4ea699a8fa62067ab614077484415fac9838
parentb8dcdc75c10866362c9526885d3c0c99ff4bfdf9

fix printf format specifier


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
...@@ -6188,7 +6188,7 @@ static void gen_h_file(CodeGen *g) {...@@ -6188,7 +6188,7 @@ static void gen_h_file(CodeGen *g) {
6188 get_c_type(g, gen_h, struct_field->type_entry, type_name_buf);6188 get_c_type(g, gen_h, struct_field->type_entry, type_name_buf);
61896189
6190 if (struct_field->type_entry->id == TypeTableEntryIdArray) {6190 if (struct_field->type_entry->id == TypeTableEntryIdArray) {
6191 fprintf(out_h, " %s %s[%d];\n", buf_ptr(type_name_buf),6191 fprintf(out_h, " %s %s[%" ZIG_PRI_u64 "];\n", buf_ptr(type_name_buf),
6192 buf_ptr(struct_field->name),6192 buf_ptr(struct_field->name),
6193 struct_field->type_entry->data.array.len);6193 struct_field->type_entry->data.array.len);
6194 } else {6194 } else {