authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-20 23:14:49+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-20 23:14:49+02:00
log798720224341820da8ec756a20a93a33cc41835e
treeb430fb610bf1218e75755daee877a248df69ae19
parent266b2de1505ed64f05260c7057b9b563a2161e48

Fix signedness mismatch in comparison


1 files changed, 1 insertions(+), 1 deletions(-)

src/os.cpp+1-1
......@@ -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");