(svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues

This commit is contained in:
truebrain
2011-12-01 12:03:20 +00:00
parent 71c1ef5d26
commit 0c2bbdde5c
17 changed files with 2099 additions and 2018 deletions

View File

@@ -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);