Fix warnings. r=Pike, rs=jst.
git-svn-id: svn://10.0.0.236/trunk@127157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -219,10 +219,11 @@ ExprResult* StringFunctionCall::evaluate(txIEvalContext* aContext)
|
||||
evaluateToString((Expr*)iter.next(), aContext, oldChars);
|
||||
evaluateToString((Expr*)iter.next(), aContext, newChars);
|
||||
PRUint32 i;
|
||||
PRInt32 newCharsLength = (PRInt32)newChars.length();
|
||||
for (i = 0; i < src.length(); i++) {
|
||||
PRInt32 idx = oldChars.indexOf(src.charAt(i));
|
||||
if (idx != kNotFound) {
|
||||
if (idx < newChars.length())
|
||||
if (idx < newCharsLength)
|
||||
dest.append(newChars.charAt((PRUint32)idx));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user