diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-05-02 12:13:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-02 12:16:23 -0700 |
| commit | 9af4cada73e43fb98e906a0ed79197963d1a05ac (patch) | |
| tree | db634dec75b5f79847dbfa799b613d47815bc0cd /lib/std/elf.zig | |
| parent | a3f56154d08f25dbe2b6d15de30deda8a2d9ef33 (diff) | |
| download | zig-9af4cada73e43fb98e906a0ed79197963d1a05ac.tar.gz zig-9af4cada73e43fb98e906a0ed79197963d1a05ac.zip | |
Sema: coerce comptime_float to fixed-width float
Instead of doing heterogeneous comparison at comptime. This makes the
following test pass (as it already does for stage1):
```zig
test {
const x: f64 = 12.34;
expect(x == 12.34);
}
```
There is already behavior test coverage for this, however, other bugs in
`std.fmt.parseFloat` are masking the failures.
From a language specification perspective, this makes sense because it
makes comptime comparisons with comptime_float work the same way they
work with runtime comparisons.
Diffstat (limited to 'lib/std/elf.zig')
0 files changed, 0 insertions, 0 deletions
