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;...@@ -2564,8 +2564,8 @@ static const size_t err_union_err_index = 0;
2564static const size_t err_union_payload_index = 1;2564static const size_t err_union_payload_index = 1;
25652565
2566enum FloatMode {2566enum FloatMode {
2567 FloatModeStrict,
2568 FloatModeOptimized,2567 FloatModeOptimized,
2568 FloatModeStrict,
2569};2569};
25702570
2571#endif2571#endif
src/codegen.cpp+3-3
...@@ -4629,11 +4629,11 @@ static void define_builtin_compile_vars(CodeGen *g) {...@@ -4629,11 +4629,11 @@ static void define_builtin_compile_vars(CodeGen *g) {
4629 {4629 {
4630 buf_appendf(contents,4630 buf_appendf(contents,
4631 "pub const FloatMode = enum {\n"4631 "pub const FloatMode = enum {\n"
4632 " Strict,\n"
4633 " Optimized,\n"4632 " Optimized,\n"
4633 " Strict,\n"
4634 "};\n\n");4634 "};\n\n");
4635 assert(FloatModeStrict == 0);4635 assert(FloatModeOptimized == 0);
4636 assert(FloatModeOptimized == 1);4636 assert(FloatModeStrict == 1);
4637 }4637 }
4638 buf_appendf(contents, "pub const is_big_endian = %s;\n", bool_to_str(g->is_big_endian));4638 buf_appendf(contents, "pub const is_big_endian = %s;\n", bool_to_str(g->is_big_endian));
4639 buf_appendf(contents, "pub const is_test = %s;\n", bool_to_str(g->is_test_build));4639 buf_appendf(contents, "pub const is_test = %s;\n", bool_to_str(g->is_test_build));