diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/builtin.zig | 4 | ||||
| -rw-r--r-- | lib/std/zig/AstGen.zig | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 7e7fe951d2..9006d316ad 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -471,8 +471,8 @@ pub const Type = union(enum) { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const FloatMode = enum { - Strict, - Optimized, + strict, + optimized, }; /// This data structure is used by the Zig language code generation and diff --git a/lib/std/zig/AstGen.zig b/lib/std/zig/AstGen.zig index 1e65453f25..e20925adbc 100644 --- a/lib/std/zig/AstGen.zig +++ b/lib/std/zig/AstGen.zig @@ -8587,7 +8587,7 @@ fn numberLiteral(gz: *GenZir, ri: ResultInfo, node: Ast.Node.Index, source_node: .positive => unsigned_float_number, }; // If the value fits into a f64 without losing any precision, store it that way. - @setFloatMode(.Strict); + @setFloatMode(.strict); const smaller_float: f64 = @floatCast(float_number); const bigger_again: f128 = smaller_float; if (bigger_again == float_number) { |
