We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2a9099 + 6a3c7ee commit 3e6f2b7Copy full SHA for 3e6f2b7
src/llama-mmap.cpp
@@ -485,7 +485,7 @@ struct llama_mlock::impl {
485
if (suggest && getrlimit(RLIMIT_MEMLOCK, &lock_limit)) {
486
suggest = false;
487
}
488
- if (suggest && (lock_limit.rlim_max > lock_limit.rlim_cur + size)) {
+ if (suggest && ((uint64_t)lock_limit.rlim_max > (uint64_t)lock_limit.rlim_cur + size)) {
489
490
491
#endif
0 commit comments