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() {...@@ -1350,7 +1350,7 @@ static void init_rand() {
1350 zig_panic("unable to open /dev/urandom");1350 zig_panic("unable to open /dev/urandom");
1351 }1351 }
1352 char bytes[sizeof(unsigned)];1352 char bytes[sizeof(unsigned)];
1353 size_t amt_read;1353 ssize_t amt_read;
1354 while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) {1354 while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) {
1355 if (errno == EINTR) continue;1355 if (errno == EINTR) continue;
1356 zig_panic("unable to read /dev/urandom");1356 zig_panic("unable to read /dev/urandom");