Remove unnecessary check

pull/6763/head^2
Gokhan Gulbiz 2023-03-16 11:00:37 +03:00
parent 5e6ac25885
commit 8e1e827242
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 3 additions and 3 deletions

View File

@ -697,8 +697,7 @@ ExtractTopComment(const char *inputString)
{
/* Skip the comment start characters */
commentEndCharsIndex += commentStartCharsLength;
while (inputString[commentEndCharsIndex] &&
commentEndCharsIndex < inputStringLen &&
while (commentEndCharsIndex < inputStringLen &&
!(inputString[commentEndCharsIndex] == '*' &&
inputString [commentEndCharsIndex + 1] == '/'))
{
@ -778,7 +777,8 @@ UnescapeCommentChars(const char *str)
{
if (str[originalStringindex] == '\\' && originalStringindex <
originalStringLength - 1 && (str[originalStringindex + 1] == '*' ||
str[originalStringindex + 1] == '/'))
str
[originalStringindex + 1] == '/'))
{
originalStringindex++;
}