mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
using 'tolower' instead of 'toupper' (slightly simpler to implement)
This commit is contained in:
parent
59547c6cda
commit
5acc5b0c1e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lobject.c,v 2.50 2011/06/16 14:13:22 roberto Exp roberto $
|
||||
** $Id: lobject.c,v 2.51 2011/06/23 16:01:06 roberto Exp roberto $
|
||||
** Some generic functions over Lua objects
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -86,7 +86,7 @@ lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2) {
|
|||
|
||||
int luaO_hexavalue (int c) {
|
||||
if (lisdigit(c)) return c - '0';
|
||||
else return ltoupper(c) - 'A' + 10;
|
||||
else return ltolower(c) - 'a' + 10;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue