mirror of
https://github.com/cwbaker/lalr.git
synced 2026-09-26 16:33:18 +03:00
Fix maximum calculation in GrammarSymbolSet::insert()
Fixes #36 "Improve performance of GrammarSymbolSet". Not reproduced exactly because I didn't have the grammar to hand but it seems likely this is the problem.
This commit is contained in:
parent
b0a6fb6b24
commit
aeacb29cb2
1 changed files with 1 additions and 1 deletions
|
|
@ -123,6 +123,6 @@ int GrammarSymbolSet::insert( const GrammarSymbolSet& set )
|
|||
}
|
||||
}
|
||||
minimum_ = min( minimum_, set.minimum_ );
|
||||
maximum_ = min( maximum_, set.maximum_ );
|
||||
maximum_ = max( maximum_, set.maximum_ );
|
||||
return added;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue