Skip to content

Commit 3e6f2b7

Browse files
committed
Merge remote-tracking branch 'origin/llama-fix-signed-comparison-warning-on-freebsd' into installama
2 parents b2a9099 + 6a3c7ee commit 3e6f2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-mmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ struct llama_mlock::impl {
485485
if (suggest && getrlimit(RLIMIT_MEMLOCK, &lock_limit)) {
486486
suggest = false;
487487
}
488-
if (suggest && (lock_limit.rlim_max > lock_limit.rlim_cur + size)) {
488+
if (suggest && ((uint64_t)lock_limit.rlim_max > (uint64_t)lock_limit.rlim_cur + size)) {
489489
suggest = false;
490490
}
491491
#endif

0 commit comments

Comments
 (0)