Bug 657389 - nsHtml5MetaScanner should use PR_INT32_MAX instead of -1 as a special marker value for indeces. r=jonas.

This commit is contained in:
Henri Sivonen
2011-09-07 12:50:15 +03:00
parent 6408cdd04b
commit 43e1790b7c
2 changed files with 4 additions and 4 deletions

View File

@@ -578,8 +578,8 @@ public abstract class MetaScanner {
state = MetaScanner.ATTRIBUTE_NAME;
continue stateloop;
default:
contentIndex = -1;
charsetIndex = -1;
contentIndex = Integer.MAX_VALUE;
charsetIndex = Integer.MAX_VALUE;
state = MetaScanner.ATTRIBUTE_NAME;
continue stateloop;
}