diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-26 21:50:14 +0100 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2024-08-27 06:43:40 +0100 |
| commit | 93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc (patch) | |
| tree | ae7e7763301389f86890d011c2818000125ed1ac /lib/std/fmt/parse_float.zig | |
| parent | d3c6f7179c7a6086ab9cdbaed231da9a1f0b4dee (diff) | |
| download | zig-93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc.tar.gz zig-93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc.zip | |
translate-c: support GCC/Clang pointer subtraction extension
Pointer subtraction on `void *` or function pointers is UB by the C
spec, but is permitted by GCC and Clang as an extension. So, avoid
crashing translate-c in such cases, and follow the extension behavior --
there's nothing else that could really be intended.
Diffstat (limited to 'lib/std/fmt/parse_float.zig')
0 files changed, 0 insertions, 0 deletions
