diff options
Diffstat (limited to 'cpp/src/Slice/Scanner.cpp')
-rw-r--r-- | cpp/src/Slice/Scanner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Scanner.cpp b/cpp/src/Slice/Scanner.cpp index 841ced1cfab..43dde08d0c0 100644 --- a/cpp/src/Slice/Scanner.cpp +++ b/cpp/src/Slice/Scanner.cpp @@ -2484,7 +2484,7 @@ checkKeyword(string& id) int checkIdentifier(string& id) { // check whether the identifier is scoped - int scopeIndex = id.rfind("::"); + size_t scopeIndex = id.rfind("::"); bool isScoped = scopeIndex != string::npos; string name; if(isScoped) @@ -2507,7 +2507,7 @@ int checkIdentifier(string& id) } // check the identifier for illegal underscores - int index = name.find('_'); + size_t index = name.find('_'); if(index == 0) { unit->error("illegal leading underscore in identifier `" + name + "'"); |