(glslang) Add more parentheses

This commit is contained in:
libretroadmin 2024-04-05 22:56:16 +02:00
parent b8d12a7d12
commit def0ce97b1

View file

@ -103,7 +103,7 @@ bool TInputScanner::consumeComment()
c = get();
// if it's a two-character newline, skip both characters
if (c == '\r' && peek() == '\n')
if ((c == '\r') && (peek() == '\n'))
get();
c = get();
}
@ -185,14 +185,14 @@ bool TInputScanner::scanVersion(int& version, EProfile& profile, bool& notFirstT
if (lookingInMiddle) {
notFirstToken = true;
// make forward progress by finishing off the current line plus extra new lines
if (peek() == '\n' || peek() == '\r') {
while (peek() == '\n' || peek() == '\r')
if ((peek() == '\n') || (peek() == '\r')) {
while ((peek() == '\n') || (peek() == '\r'))
get();
} else
do {
c = get();
} while (c != EndOfInput && c != '\n' && c != '\r');
while (peek() == '\n' || peek() == '\r')
while ((peek() == '\n') || (peek() == '\r'))
get();
if (peek() == EndOfInput)
return true;