Skip to content

Commit

Permalink
Fix logic of state machine guards
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Dec 15, 2015
1 parent d624399 commit 6c94486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcmtkpp/dul/StateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ::transition(Event const & event, EventData & data)
auto const guard_iterator = StateMachine::_guards.find(
{this->_state, event});
auto const guard_value =
(guard_iterator == StateMachine::_guards.end())?
(guard_iterator != StateMachine::_guards.end())?
guard_iterator->second(*this):true;

auto const transition_iterator = StateMachine::_transitions.find(
Expand Down

0 comments on commit 6c94486

Please sign in to comment.