mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Fix signedness mismatch in comparison
This commit is contained in:
parent
266b2de150
commit
7987202243
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user