diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-24 09:25:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-24 09:25:02 -0300 |
commit | 5acc5b0c1e2f5ae79fa990782d0850303924b082 (patch) | |
tree | 809b9b6adc0129a81457e2264597f42f5761fc6f | |
parent | 59547c6cda8ac1371b473ec6f1088a35bcec7558 (diff) | |
download | lua-5acc5b0c1e2f5ae79fa990782d0850303924b082.tar.gz lua-5acc5b0c1e2f5ae79fa990782d0850303924b082.tar.bz2 lua-5acc5b0c1e2f5ae79fa990782d0850303924b082.zip |
using 'tolower' instead of 'toupper' (slightly simpler to implement)
-rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.50 2011/06/16 14:13:22 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.51 2011/06/23 16:01:06 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -86,7 +86,7 @@ lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2) { | |||
86 | 86 | ||
87 | int luaO_hexavalue (int c) { | 87 | int luaO_hexavalue (int c) { |
88 | if (lisdigit(c)) return c - '0'; | 88 | if (lisdigit(c)) return c - '0'; |
89 | else return ltoupper(c) - 'A' + 10; | 89 | else return ltolower(c) - 'a' + 10; |
90 | } | 90 | } |
91 | 91 | ||
92 | 92 | ||