mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
fix build warning on C++ template deduction on Linux
This commit is contained in:
parent
ec2c83a633
commit
2594b37c56
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue