diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-31 11:36:00 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-31 11:36:00 +0100 |
| commit | 0fae31fb545b474359359fd644911fa335c5c282 (patch) | |
| tree | 5077da92ae70949b014c981d91467d67ff127e2f /src/ir_print.cpp | |
| parent | 8987a6630c8ec43da770dd92c10f6b92e17201f2 (diff) | |
Extra type safety; Fix typos
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 1d6d85886..c7dc9e2d0 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -686,7 +686,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * ir_write_string(f, "zeroinitializer"); } else { if (is_type_struct(type)) { - i32 value_count = type->Struct.fields.count; + i32 value_count = cast(i32)type->Struct.fields.count; if (type->Struct.is_packed) ir_write_byte(f, '<'); ir_write_byte(f, '{'); if (type->Struct.custom_align > 0) { |