Skip to content

Commit 7987202

Browse files
committed
Fix signedness mismatch in comparison
1 parent 266b2de commit 7987202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ static void init_rand() {
13501350
zig_panic("unable to open /dev/urandom");
13511351
}
13521352
char bytes[sizeof(unsigned)];
1353-
size_t amt_read;
1353+
ssize_t amt_read;
13541354
while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) {
13551355
if (errno == EINTR) continue;
13561356
zig_panic("unable to read /dev/urandom");

0 commit comments

Comments
 (0)