summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/antlr_input.cpp')
-rw-r--r--src/parser/antlr_input.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index 127365b78..88b43eb0e 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -372,8 +372,8 @@ std::string parseErrorHelper(const char* lineStart, int charPositionInLine, cons
// likely it is also in original message? if so, very likely
// we found the right place
string word = slice.substr(caretPos, (caretPosOrig - caretPos + 1));
- unsigned messagePosSt = message.find(word);
- unsigned messagePosEn = messagePosSt + (caretPosOrig - caretPos);
+ int messagePosSt = message.find(word);
+ int messagePosEn = messagePosSt + (caretPosOrig - caretPos);
if( messagePosSt < string::npos &&
(messagePosSt == 0 || !isSimpleChar(message[messagePosSt-1]) ) &&
(messagePosEn+1 == message.size() || !isSimpleChar(message[messagePosEn+1]) ) ) {
@@ -396,8 +396,8 @@ std::string parseErrorHelper(const char* lineStart, int charPositionInLine, cons
}
string word = slice.substr(nearestWordSt, (nearestWordEn - nearestWordSt + 1));
Debug("friendlyparser") << "[friendlyparser] nearest word = " << word << std::endl;
- unsigned messagePosSt = message.find(word);
- unsigned messagePosEn = messagePosSt + (nearestWordEn - nearestWordSt + 1);
+ int messagePosSt = message.find(word);
+ int messagePosEn = messagePosSt + (nearestWordEn - nearestWordSt + 1);
if( messagePosSt < string::npos &&
(messagePosSt == 0 || !isSimpleChar(message[messagePosSt-1]) ) &&
(messagePosEn+1 == message.size() || !isSimpleChar(message[messagePosEn+1]) ) ) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback