zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 798720224341820da8ec756a20a93a33cc41835e (tree)
parent 266b2de1505ed64f05260c7057b9b563a2161e48
Author: LemonBoy <thatlemon@gmail.com>
Date:   Mon, 20 May 2019 23:14:49 +0200

Fix signedness mismatch in comparison

Diffstat:
Msrc/os.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/os.cpp b/src/os.cpp @@ -1350,7 +1350,7 @@ static void init_rand() { zig_panic("unable to open /dev/urandom"); } char bytes[sizeof(unsigned)]; - size_t amt_read; + ssize_t amt_read; while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) { if (errno == EINTR) continue; zig_panic("unable to read /dev/urandom");