Skip to content

Commit

Permalink
Merge pull request ziglang#19229 from tiehuis/ryu-128
Browse files Browse the repository at this point in the history
std.fmt: add ryu floating-point formatting implementation
  • Loading branch information
andrewrk authored Mar 12, 2024
2 parents 9e21a8d + df11165 commit 1a74b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safety/slice sentinel mismatch - floats.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");

pub fn panic(message: []const u8, stack_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn {
_ = stack_trace;
if (std.mem.eql(u8, message, "sentinel mismatch: expected 1.20000004e+00, found 4.0e+00")) {
if (std.mem.eql(u8, message, "sentinel mismatch: expected 1.2e0, found 4e0")) {
std.process.exit(0);
}
std.process.exit(1);
Expand Down

0 comments on commit 1a74b4a

Please sign in to comment.