Bug 686283 - Properly handle EOF in TokenStream::getAtSourceMappingURL on platforms with unsigned chars. r=luke

This commit is contained in:
Mike Hommey 2011-10-11 08:41:47 +02:00
parent 4029e9aa72
commit 19beef62f0

View File

@ -1224,8 +1224,7 @@ TokenStream::getAtSourceMappingURL()
jschar c;
while (!IsSpaceOrBOM2((c = getChar())) &&
((char) c) != '\0' &&
((char) c) != EOF)
c && c != jschar(EOF))
tokenbuf.append(c);
if (tokenbuf.empty())