Fix two issues found by coverity

This commit is contained in:
Maurice van der Pot 2017-07-15 17:13:27 +02:00
parent c41426c87e
commit 162e2657b8
2 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,7 @@ size_t LexerActionExecutor::generateHashCode() const {
for (auto lexerAction : _lexerActions) {
hash = MurmurHash::update(hash, lexerAction);
}
MurmurHash::finish(hash, _lexerActions.size());
hash = MurmurHash::finish(hash, _lexerActions.size());
return hash;
}

View File

@ -44,6 +44,8 @@ IntervalSet::IntervalSet(int n, ...) : IntervalSet() {
for (int i = 0; i < n; i++) {
add(va_arg(vlist, int));
}
va_end(vlist);
}
IntervalSet::~IntervalSet()