Add an additional comment

Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
pull/6763/head^2
Gokhan Gulbiz 2023-03-21 11:22:08 +03:00
parent 2ac56ef955
commit 5e9dd3c894
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 2 additions and 0 deletions

View File

@ -700,6 +700,8 @@ ExtractTopComment(const char *inputString)
/* Skip the comment start characters */ /* Skip the comment start characters */
commentEndCharsIndex += commentStartCharsLength; commentEndCharsIndex += commentStartCharsLength;
/* Find the first comment end character */
while (commentEndCharsIndex < inputStringLen && while (commentEndCharsIndex < inputStringLen &&
!(inputString[commentEndCharsIndex] == '*' && !(inputString[commentEndCharsIndex] == '*' &&
inputString [commentEndCharsIndex + 1] == '/')) inputString [commentEndCharsIndex + 1] == '/'))