Bug 576447: ^ means bitwise-xor, nothing else. r=dbaron

This commit is contained in:
Jonas Sicking 2010-07-22 18:16:02 -07:00
parent d1954b5c87
commit 86d78a4568

View File

@ -324,7 +324,7 @@ nsHTMLFrameSetElement::ParseRowCol(const nsAString & aValue,
#define MAX_FRAMESET_SPEC_COUNT 100000
// Count the commas. Don't count more than X commas (bug 576447).
PR_STATIC_ASSERT(MAX_FRAMESET_SPEC_COUNT * sizeof(nsFramesetSpec) < 2^30);
PR_STATIC_ASSERT(MAX_FRAMESET_SPEC_COUNT * sizeof(nsFramesetSpec) < (1 << 30));
PRInt32 commaX = spec.FindChar(sComma);
PRInt32 count = 1;
while (commaX != kNotFound && count < MAX_FRAMESET_SPEC_COUNT) {