diff options
| author | Ian Simonson <ian.simonson@protonmail.com> | 2020-09-27 15:07:50 +1000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-27 05:46:39 -0400 |
| commit | eab51b7785ce0989f90a5cdde4b1110f40875ddb (patch) | |
| tree | df0772f5d0911f497ccd14fb980a4c225f99b0d8 /src/Compilation.zig | |
| parent | ed357f9897a6c96a1744307b1bc75a370dd85461 (diff) | |
| download | zig-eab51b7785ce0989f90a5cdde4b1110f40875ddb.tar.gz zig-eab51b7785ce0989f90a5cdde4b1110f40875ddb.zip | |
Make LinearFifo not crash when discarding from empty buffer
Previously if a LinearFifo was empty and discard was called
an unsigned overflow would occur. However it is safe to perform
this overflow as a bitwise & operation with 0xFFFFFFFFFFFFFF is a noop
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
