diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-04-24 18:42:23 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2021-04-24 18:42:23 +0200 |
| commit | 7c3896e6cd20a51e63a018fd2e05ea3c552b7401 (patch) | |
| tree | 00900f2c69d30bec5965610d19966a1e17214980 /lib/std/debug.zig | |
| parent | 4ec6d174adc038741f1274d157f5253752eb8d51 (diff) | |
| download | zig-7c3896e6cd20a51e63a018fd2e05ea3c552b7401.tar.gz zig-7c3896e6cd20a51e63a018fd2e05ea3c552b7401.zip | |
translate-c: Prevent mistranslation of fp literals
When trying to retrieve 80bit fp values from clang using
getValueAsApproximateDouble we'd eventually hit the ceiling value and
return infinity, an invalid value for a fp literal.
Add some logic to prevent this error and warn the user.
Closes #8602
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
