]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : fix signed comparison warning on FreeBSD (#17497)
authorAdrien Gallouët <redacted>
Tue, 2 Dec 2025 11:05:38 +0000 (12:05 +0100)
committerGitHub <redacted>
Tue, 2 Dec 2025 11:05:38 +0000 (12:05 +0100)
commitf3a9674ae896972154ec110b0c3da03438196189
treeda70d6c23d36f4d007dc542da2159e9a51376b25
parent2c453c6c7786df267b3ae6fd5019eee126a35a29
llama : fix signed comparison warning on FreeBSD (#17497)

This ensures correct RLIM_INFINITY handling and compatibility on all platforms (32/64-bit).

    warning: comparison of integers of different signs: 'rlim_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      488 |         if (suggest && (lock_limit.rlim_max > lock_limit.rlim_cur + size)) {
          |                         ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Adrien Gallouët <redacted>
src/llama-mmap.cpp