aboutsummaryrefslogtreecommitdiff
path: root/lib/std/heap.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-07-09 07:59:32 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-07-12 21:02:33 +0000
commiteea7271c4e9d56e9c0fadcaac0ffef54ad786bf8 (patch)
tree55b5a649eae827d2c3d5d616418b4f67765721ed /lib/std/heap.zig
parente1a5e061ca7897ce6e08b724d517a83ae439bf41 (diff)
downloadzig-eea7271c4e9d56e9c0fadcaac0ffef54ad786bf8.tar.gz
zig-eea7271c4e9d56e9c0fadcaac0ffef54ad786bf8.zip
Fix incorrect continue condition in PreopeonList
Also, check for overflow on incremented file descriptors. Previously, we'd trigger a panic if we exceeded the `fd_t` resolution. Now, instead, we throw an `error.Overflow` to signal that there can be no more file descriptors available from the runtime. This way we give the user the ability to still be able to check if their desired preopen exists in the list or not.
Diffstat (limited to 'lib/std/heap.zig')
0 files changed, 0 insertions, 0 deletions