diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-14 16:24:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-14 16:24:46 -0300 |
commit | 3cdd49c94a8feed94853ba3a6adaa556fb34fd8d (patch) | |
tree | 1f552c966d1fb5f5c23e956e6d98679f02a558b3 /lobject.c | |
parent | 10e931da82268a9d190c17a9bdb9b1a4b48c2947 (diff) | |
download | lua-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -194,6 +194,7 @@ void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, | |||
194 | 194 | ||
195 | 195 | ||
196 | lu_byte luaO_hexavalue (int c) { | 196 | lu_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 | } |