summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/sqstdlib
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-01 12:03:20 +0000
committertruebrain <truebrain@openttd.org>2011-12-01 12:03:20 +0000
commit0c2bbdde5c0f9577cff72af5b34c10777c6bebd0 (patch)
tree3bb5cff8ae5c1151ef99c0f483ff4c17876c7398 /src/3rdparty/squirrel/sqstdlib
parent71c1ef5d264c5c55cc02b57fe1f9884b50e5400b (diff)
downloadopenttd-0c2bbdde5c0f9577cff72af5b34c10777c6bebd0.tar.xz
(svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues
Diffstat (limited to 'src/3rdparty/squirrel/sqstdlib')
-rw-r--r--src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp b/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
index 60d8c6bad..90d980e10 100644
--- a/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
+++ b/src/3rdparty/squirrel/sqstdlib/sqstdrex.cpp
@@ -180,7 +180,7 @@ static SQInteger sqstd_rex_class(SQRex *exp)
SQInteger r;
if(*exp->_p++ == ']') sqstd_rex_error(exp,_SC("unfinished range"));
r = sqstd_rex_newnode(exp,OP_RANGE);
- if((SQChar)first>*exp->_p) sqstd_rex_error(exp,_SC("invalid range"));
+ if(exp->_nodes[first].type>*exp->_p) sqstd_rex_error(exp,_SC("invalid range"));
if(exp->_nodes[first].type == OP_CCLASS) sqstd_rex_error(exp,_SC("cannot use character classes in ranges"));
exp->_nodes[r].left = exp->_nodes[first].type;
SQInteger t = sqstd_rex_escapechar(exp);