diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-19 03:03:20 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-19 03:21:47 -0500 |
| commit | ea623f2d397941daad20eec7114cac01a5f86d24 (patch) | |
| tree | 5e567db20d2ebbcf617f22d2107c58c5b8ede811 /src/ir.cpp | |
| parent | 4b64c777ee465abb1f4a6bf2d31ba39805d5fa54 (diff) | |
| download | zig-ea623f2d397941daad20eec7114cac01a5f86d24.tar.gz zig-ea623f2d397941daad20eec7114cac01a5f86d24.zip | |
all doc code examples are now tested
improve color scheme of docs
make docs depend on no external files
fix broken example code in docs
closes #465
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 fae3b82481..77268327c8 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -9009,7 +9009,7 @@ static TypeTableEntry *ir_analyze_bin_op_math(IrAnalyze *ira, IrInstructionBinOp int err; if ((err = ir_eval_math_op(resolved_type, op1_val, op_id, op2_val, out_val))) { if (err == ErrorDivByZero) { - ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("division by zero is undefined")); + ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("division by zero")); return ira->codegen->builtin_types.entry_invalid; } else if (err == ErrorOverflow) { ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("operation caused overflow")); |
