Skip to content

Commit

Permalink
Fix GrammarSymbolSet's move and copy constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
elushaX authored and cwbaker committed Jul 14, 2024
1 parent 7267c0a commit efde50b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lalr/GrammarSymbolSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ GrammarSymbolSet::GrammarSymbolSet( size_t symbols )

GrammarSymbolSet::GrammarSymbolSet( GrammarSymbolSet&& set )
: set_( std::move(set.set_) )
, minimum_(numeric_limits<size_t>::max())
, maximum_(numeric_limits<size_t>::min())
, minimum_(set.minimum_)
, maximum_(set.maximum_)
{
}

GrammarSymbolSet::GrammarSymbolSet( const GrammarSymbolSet& set )
: set_( set.set_ )
, minimum_(numeric_limits<size_t>::max())
, maximum_(numeric_limits<size_t>::min())
, minimum_(set.minimum_)
, maximum_(set.maximum_)
{
}

Expand Down

0 comments on commit efde50b

Please sign in to comment.