aboutsummaryrefslogtreecommitdiff
path: root/lobject.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 /lobject.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 'lobject.c')
-rw-r--r--lobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lobject.c b/lobject.c
index 97dacaf5..c0fd182f 100644
--- a/lobject.c
+++ b/lobject.c
@@ -194,6 +194,7 @@ void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2,
194 194
195 195
196lu_byte luaO_hexavalue (int c) { 196lu_byte luaO_hexavalue (int c) {
197 lua_assert(lisxdigit(c));
197 if (lisdigit(c)) return cast_byte(c - '0'); 198 if (lisdigit(c)) return cast_byte(c - '0');
198 else return cast_byte((ltolower(c) - 'a') + 10); 199 else return cast_byte((ltolower(c) - 'a') + 10);
199} 200}