зеркало из https://github.com/mozilla/pjs.git
C file, not C++.
This commit is contained in:
Родитель
344498aa4e
Коммит
0d0571e8db
|
@ -165,7 +165,7 @@ int MOZ_XMLTranslateEntity(const char* ptr, const char* end, const char** next,
|
|||
if (tok == XML_TOK_CHAR_REF) {
|
||||
int n = XmlCharRefNumber(enc, ptr);
|
||||
|
||||
// We could get away with just < 0, but better safe than sorry.
|
||||
/* We could get away with just < 0, but better safe than sorry. */
|
||||
if (n <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
@ -174,8 +174,8 @@ int MOZ_XMLTranslateEntity(const char* ptr, const char* end, const char** next,
|
|||
}
|
||||
|
||||
if (tok == XML_TOK_ENTITY_REF) {
|
||||
// *next points to after the semicolon, so the entity ends at
|
||||
// *next - enc->minBytesPerChar.
|
||||
/* *next points to after the semicolon, so the entity ends at
|
||||
*next - enc->minBytesPerChar. */
|
||||
XML_Char ch =
|
||||
(XML_Char)XmlPredefinedEntityName(enc, ptr, *next - enc->minBytesPerChar);
|
||||
if (!ch) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче