aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-23 11:40:22 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-23 11:40:22 -0500
commitc2838f24429d00debf43493c48caf739f57db023 (patch)
tree285a4ea699a8fa62067ab614077484415fac9838 /src/codegen.cpp
parentb8dcdc75c10866362c9526885d3c0c99ff4bfdf9 (diff)
downloadzig-c2838f24429d00debf43493c48caf739f57db023.tar.gz
zig-c2838f24429d00debf43493c48caf739f57db023.zip
fix printf format specifier
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index ecbc49da5b..a53190f6b0 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -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 {