diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-03-18 09:47:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 09:47:35 -0400 |
commit | d7f16822832178b519f628ae5ebe10e578235527 (patch) | |
tree | 5b52db07ed14c73b4edc09a7f13d173ace97043e | |
parent | 8367b0015fbf99070cc5a5244d8213420419d2c8 (diff) | |
parent | 078b567a23600d5bc5d1895b8a2ad46671882461 (diff) |
Merge pull request #42 from Diegoisawesome/master
scaninc: Fix C comment consumption logic
-rw-r--r-- | tools/scaninc/c_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp index d470f959d..595f366cb 100644 --- a/tools/scaninc/c_file.cpp +++ b/tools/scaninc/c_file.cpp @@ -134,7 +134,7 @@ bool CFile::ConsumeComment() if (m_buffer[m_pos] == '/' && m_buffer[m_pos + 1] == '*') { m_pos += 2; - while (m_buffer[m_pos] != '*' && m_buffer[m_pos + 1] != '/') + while (m_buffer[m_pos] != '*' || m_buffer[m_pos + 1] != '/') { if (m_buffer[m_pos] == 0) return false; |