diff options
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 | } |