summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Scanner.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-11-21 16:28:28 +0100
committerBenoit Foucher <benoit@zeroc.com>2017-11-21 16:28:28 +0100
commitd28eaa6d651a6a4107f82b54465af4944d2e32b2 (patch)
treeab48bdf33e909e6edff6d97f6314f95ce339eb6c /cpp/src/Slice/Scanner.cpp
parentJava 1.7 test build failure (diff)
downloadice-d28eaa6d651a6a4107f82b54465af4944d2e32b2.tar.bz2
ice-d28eaa6d651a6a4107f82b54465af4944d2e32b2.tar.xz
ice-d28eaa6d651a6a4107f82b54465af4944d2e32b2.zip
Fixed Slice/Scanner.l build issue with macOS (ICE-8574)
Diffstat (limited to 'cpp/src/Slice/Scanner.cpp')
-rw-r--r--cpp/src/Slice/Scanner.cpp4
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 + "'");