diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 22:33:55 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 22:33:55 -0500 |
| commit | f980c29306ac9435662bde6fb5557ca0c6d98310 (patch) | |
| tree | 1ba2e4587e93f53750cb6d01faf4e2c6c33788c0 /src/ir.cpp | |
| parent | a438a615e6e2ef9e49bf10405b3ba6c8814ccf4b (diff) | |
| download | zig-f980c29306ac9435662bde6fb5557ca0c6d98310.tar.gz zig-f980c29306ac9435662bde6fb5557ca0c6d98310.zip | |
fix typo in error note for integer casting
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 18d7698c7a..272442a563 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -12753,7 +12753,7 @@ static void report_recursive_error(IrAnalyze *ira, AstNode *source_node, ConstCa ZigType *wanted_type = cast_result->data.int_shorten->wanted_type; ZigType *actual_type = cast_result->data.int_shorten->actual_type; const char *wanted_signed = wanted_type->data.integral.is_signed ? "signed" : "unsigned"; - const char *actual_signed = wanted_type->data.integral.is_signed ? "signed" : "unsigned"; + const char *actual_signed = actual_type->data.integral.is_signed ? "signed" : "unsigned"; add_error_note(ira->codegen, parent_msg, source_node, buf_sprintf("%s %" PRIu32 "-bit int cannot represent all possible %s %" PRIu32 "-bit values", wanted_signed, wanted_type->data.integral.bit_count, |
