Commit 37767bc2 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Qnx: Fix version comparison



Change-Id: I6f55252bc777bb0dd64698982e62c873c5b9e663
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent a6d8bbbb
......@@ -73,10 +73,12 @@ bool QnxVersionNumber::operator >(const QnxVersionNumber &b) const
int aInt = aParts[j].toInt(&aOk);
int bInt = bParts[j].toInt(&bOk);
if (aOk && bOk)
if (aOk && bOk && (aInt != bInt))
return aInt > bInt;
return aParts[j].compare(bParts[j]) > 0;
int compare = aParts[j].compare(bParts[j]);
if (compare != 0)
return compare > 0;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment