authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-05-20 23:26:39-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-05-20 23:26:39-04:00
log565ac3e27acedcd8dd2e39eff07de571bbcc3a1b
tree9ef516f758d04f904e8bf7263354a4d41ef9fc81
parent29b488245daa9210ed9b5e1ffb7290024677f0db

flip the enum order of FloatMode


2 files changed, 4 insertions(+), 4 deletions(-)

src/all_types.hpp+1-1
......@@ -2564,8 +2564,8 @@ static const size_t err_union_err_index = 0;
25642564static const size_t err_union_payload_index = 1;
25652565
25662566enum FloatMode {
2567 FloatModeStrict,
25682567 FloatModeOptimized,
2568 FloatModeStrict,
25692569};
25702570
25712571#endif
src/codegen.cpp+3-3
......@@ -4629,11 +4629,11 @@ static void define_builtin_compile_vars(CodeGen *g) {
46294629 {
46304630 buf_appendf(contents,
46314631 "pub const FloatMode = enum {\n"
4632 " Strict,\n"
46334632 " Optimized,\n"
4633 " Strict,\n"
46344634 "};\n\n");
4635 assert(FloatModeStrict == 0);
4636 assert(FloatModeOptimized == 1);
4635 assert(FloatModeOptimized == 0);
4636 assert(FloatModeStrict == 1);
46374637 }
46384638 buf_appendf(contents, "pub const is_big_endian = %s;\n", bool_to_str(g->is_big_endian));
46394639 buf_appendf(contents, "pub const is_test = %s;\n", bool_to_str(g->is_test_build));