From 565ac3e27acedcd8dd2e39eff07de571bbcc3a1b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 20 May 2017 23:26:39 -0400 Subject: flip the enum order of FloatMode --- src/all_types.hpp | 2 +- src/codegen.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/all_types.hpp b/src/all_types.hpp index ae9913f26b..a34da399f4 100644 --- a/src/all_types.hpp +++ b/src/all_types.hpp @@ -2564,8 +2564,8 @@ static const size_t err_union_err_index = 0; static const size_t err_union_payload_index = 1; enum FloatMode { - FloatModeStrict, FloatModeOptimized, + FloatModeStrict, }; #endif diff --git a/src/codegen.cpp b/src/codegen.cpp index 23b6acfa01..aadb6d1a91 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4629,11 +4629,11 @@ static void define_builtin_compile_vars(CodeGen *g) { { buf_appendf(contents, "pub const FloatMode = enum {\n" - " Strict,\n" " Optimized,\n" + " Strict,\n" "};\n\n"); - assert(FloatModeStrict == 0); - assert(FloatModeOptimized == 1); + assert(FloatModeOptimized == 0); + assert(FloatModeStrict == 1); } buf_appendf(contents, "pub const is_big_endian = %s;\n", bool_to_str(g->is_big_endian)); buf_appendf(contents, "pub const is_test = %s;\n", bool_to_str(g->is_test_build)); -- cgit v1.2.3