forked from jasder/antlr
Fix two issues found by coverity
This commit is contained in:
parent
c41426c87e
commit
162e2657b8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue