summaryrefslogtreecommitdiff
path: root/tools/scaninc/c_file.cpp
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-01-26 01:15:49 -0500
committerYamaArashi <YamaArashi@users.noreply.github.com>2017-01-25 22:15:49 -0800
commit72bc8f23d37c6efd68ad4a0f86ba87b6cd3db4d2 (patch)
treef62d6ddef7d869640cd483f98af1a7f7198989de /tools/scaninc/c_file.cpp
parent448acff16e53485c5cfb90983a7a1e1b4644c30b (diff)
make scaninc build under GCC (#218)
Diffstat (limited to 'tools/scaninc/c_file.cpp')
-rw-r--r--tools/scaninc/c_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp
index 4af741f6e..970fbe135 100644
--- a/tools/scaninc/c_file.cpp
+++ b/tools/scaninc/c_file.cpp
@@ -202,9 +202,9 @@ void CFile::SkipWhitespace()
bool CFile::CheckIdentifier(const std::string& ident)
{
- int i;
+ unsigned int i;
- for (i = 0; (unsigned)i < ident.length() && m_pos + i < m_size; i++)
+ for (i = 0; i < ident.length() && m_pos + i < (unsigned)m_size; i++)
if (ident[i] != m_buffer[m_pos + i])
return false;