mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(glslang) Add more parentheses
This commit is contained in:
parent
b8d12a7d12
commit
def0ce97b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user