aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
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}