summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/lua/lbaselib.c
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-21 19:42:06 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-21 19:42:06 +0000
commite79638b70be57501bb9995b24665a109188922fc (patch)
tree9482f9a9fcd5a461a6b9cf1b9742b3bc0df505bb /plugins/MirLua/src/lua/lbaselib.c
parent8ba0d63234b84060efe27542bf317cb9cf50b3af (diff)
MirLua: lua updated to 5.3.1
git-svn-id: http://svn.miranda-ng.org/main/trunk@14308 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/lua/lbaselib.c')
-rw-r--r--plugins/MirLua/src/lua/lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/lua/lbaselib.c b/plugins/MirLua/src/lua/lbaselib.c
index a2403952f0..9a15124502 100644
--- a/plugins/MirLua/src/lua/lbaselib.c
+++ b/plugins/MirLua/src/lua/lbaselib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbaselib.c,v 1.309 2014/12/10 12:26:42 roberto Exp $
+** $Id: lbaselib.c,v 1.310 2015/03/28 19:14:47 roberto Exp $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -55,7 +55,7 @@ static const char *b_str2int (const char *s, int base, lua_Integer *pn) {
return NULL;
do {
int digit = (isdigit((unsigned char)*s)) ? *s - '0'
- : toupper((unsigned char)*s) - 'A' + 10;
+ : (toupper((unsigned char)*s) - 'A') + 10;
if (digit >= base) return NULL; /* invalid numeral */
n = n * base + digit;
s++;