Compatibility

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@547 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-07-10 17:14:56 +00:00
parent fa21bee0b1
commit 7676c0b6b6
+2 -1
View File
@@ -279,7 +279,8 @@ bool smart_less(const String& sa, const String& sb) {
bool lt = false; // is sa less than sb?
bool eq = true; // so far is everything equal?
size_t na = sa.size(), nb = sb.size();
for (size_t pa = 0, pb = 0 ; pa < na && pb < nb ; ++pa, ++pb) {
size_t pa = 0, pb = 0;
for (; pa < na && pb < nb ; ++pa, ++pb) {
Char a = sa.GetChar(pa), b = sb.GetChar(pb);
next:
bool da = isDigit(a), db = isDigit(b);