diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-23 08:26:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-23 08:26:09 -0400 |
| commit | 327482c3a41a30d5ea63eedd3bfb13553c8c2d00 (patch) | |
| tree | ef668f8342632858ee20e6d9a05d9c93d8e5b704 /src/codegen.cpp | |
| parent | 68dcdf1c867a918aa0bb7b5c4cb42df185e1c8f9 (diff) | |
| parent | 353419f82d3575dc45631750a8cf08aa4826ec4c (diff) | |
| download | zig-327482c3a41a30d5ea63eedd3bfb13553c8c2d00.tar.gz zig-327482c3a41a30d5ea63eedd3bfb13553c8c2d00.zip | |
Merge pull request #1402 from ziglang/default-fp-ieee-strict
Default to strict IEEE floating point
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 16595be9dd..e926d14a7e 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -829,15 +829,15 @@ static bool ir_want_fast_math(CodeGen *g, IrInstruction *instruction) { if (scope->id == ScopeIdBlock) { ScopeBlock *block_scope = (ScopeBlock *)scope; if (block_scope->fast_math_set_node) - return !block_scope->fast_math_off; + return block_scope->fast_math_on; } else if (scope->id == ScopeIdDecls) { ScopeDecls *decls_scope = (ScopeDecls *)scope; if (decls_scope->fast_math_set_node) - return !decls_scope->fast_math_off; + return decls_scope->fast_math_on; } scope = scope->parent; } - return true; + return false; } static bool ir_want_runtime_safety(CodeGen *g, IrInstruction *instruction) { |
