fix build warning on C++ template deduction on Linux

This commit is contained in:
daan 2020-09-05 08:36:34 -07:00
parent ec2c83a633
commit 2594b37c56
2 changed files with 3 additions and 3 deletions

View file

@ -214,7 +214,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
ssize_t ret = syscall(SYS_getrandom, buf, buf_len, GRND_NONBLOCK);
if (ret >= 0) return (buf_len == (size_t)ret);
if (ret != ENOSYS) return false;
mi_atomic_store_release(&no_getrandom,1); // don't call again, and fall back to /dev/urandom
mi_atomic_store_release(&no_getrandom, 1UL); // don't call again, and fall back to /dev/urandom
}
#endif
int flags = O_RDONLY;