Skip to content

Commit

Permalink
fix printf format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jan 23, 2018
1 parent b8dcdc7 commit c2838f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Expand Up @@ -6188,7 +6188,7 @@ static void gen_h_file(CodeGen *g) {
get_c_type(g, gen_h, struct_field->type_entry, type_name_buf);

if (struct_field->type_entry->id == TypeTableEntryIdArray) {
fprintf(out_h, " %s %s[%d];\n", buf_ptr(type_name_buf),
fprintf(out_h, " %s %s[%" ZIG_PRI_u64 "];\n", buf_ptr(type_name_buf),
buf_ptr(struct_field->name),
struct_field->type_entry->data.array.len);
} else {
Expand Down

0 comments on commit c2838f2

Please sign in to comment.