aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-14 16:24:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-14 16:24:46 -0300
commit3cdd49c94a8feed94853ba3a6adaa556fb34fd8d (patch)
tree1f552c966d1fb5f5c23e956e6d98679f02a558b3 /ltable.c
parent10e931da82268a9d190c17a9bdb9b1a4b48c2947 (diff)
downloadlua-3cdd49c94a8feed94853ba3a6adaa556fb34fd8d.tar.gz
lua-3cdd49c94a8feed94853ba3a6adaa556fb34fd8d.tar.bz2
lua-3cdd49c94a8feed94853ba3a6adaa556fb34fd8d.zip
Fixed conversion warnings from clang
Plus some other details. (Option '-Wuninitialized' was removed from the makefile because it is already enabled by -Wall.)
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index b6b1fa1a..122b7f17 100644
--- a/ltable.c
+++ b/ltable.c
@@ -96,7 +96,7 @@ typedef union {
96** between 2^MAXHBITS and the maximum size such that, measured in bytes, 96** between 2^MAXHBITS and the maximum size such that, measured in bytes,
97** it fits in a 'size_t'. 97** it fits in a 'size_t'.
98*/ 98*/
99#define MAXHSIZE luaM_limitN(1u << MAXHBITS, Node) 99#define MAXHSIZE luaM_limitN(1 << MAXHBITS, Node)
100 100
101 101
102/* 102/*
@@ -598,7 +598,7 @@ static void setnodevector (lua_State *L, Table *t, unsigned size) {
598 else { 598 else {
599 int i; 599 int i;
600 int lsize = luaO_ceillog2(size); 600 int lsize = luaO_ceillog2(size);
601 if (lsize > MAXHBITS || (1u << lsize) > MAXHSIZE) 601 if (lsize > MAXHBITS || (1 << lsize) > MAXHSIZE)
602 luaG_runerror(L, "table overflow"); 602 luaG_runerror(L, "table overflow");
603 size = twoto(lsize); 603 size = twoto(lsize);
604 if (lsize < LIMFORLAST) /* no 'lastfree' field? */ 604 if (lsize < LIMFORLAST) /* no 'lastfree' field? */