From 3cdd49c94a8feed94853ba3a6adaa556fb34fd8d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 14 Jan 2025 16:24:46 -0300 Subject: Fixed conversion warnings from clang Plus some other details. (Option '-Wuninitialized' was removed from the makefile because it is already enabled by -Wall.) --- lmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmem.h') diff --git a/lmem.h b/lmem.h index 204ce3bc..08358592 100644 --- a/lmem.h +++ b/lmem.h @@ -39,11 +39,11 @@ ** Computes the minimum between 'n' and 'MAX_SIZET/sizeof(t)', so that ** the result is not larger than 'n' and cannot overflow a 'size_t' ** when multiplied by the size of type 't'. (Assumes that 'n' is an -** 'int' or 'unsigned int' and that 'int' is not larger than 'size_t'.) +** 'int' and that 'int' is not larger than 'size_t'.) */ #define luaM_limitN(n,t) \ ((cast_sizet(n) <= MAX_SIZET/sizeof(t)) ? (n) : \ - cast_uint((MAX_SIZET/sizeof(t)))) + cast_int((MAX_SIZET/sizeof(t)))) /* -- cgit v1.2.3-55-g6feb