mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Avoid C++ style comment
This commit is contained in:
parent
90a5d98cdd
commit
bfcc4836d0
1 changed files with 2 additions and 2 deletions
|
@ -1180,8 +1180,8 @@ doContent(XML_Parser parser,
|
|||
tag->rawName = s + enc->minBytesPerChar;
|
||||
tag->rawNameLength = XmlNameLength(enc, tag->rawName);
|
||||
if (nextPtr) {
|
||||
// Need to guarantee that:
|
||||
// tag->buf + ROUND_UP(tag->rawNameLength, sizeof(XML_Char)) <= tag->bufEnd - sizeof(XML_Char)
|
||||
/* Need to guarantee that:
|
||||
tag->buf + ROUND_UP(tag->rawNameLength, sizeof(XML_Char)) <= tag->bufEnd - sizeof(XML_Char) */
|
||||
if (tag->rawNameLength + (int)(sizeof(XML_Char) - 1) + (int)sizeof(XML_Char) > tag->bufEnd - tag->buf) {
|
||||
int bufSize = tag->rawNameLength * 4;
|
||||
bufSize = ROUND_UP(bufSize, sizeof(XML_Char));
|
||||
|
|
Loading…
Add table
Reference in a new issue