Fix build issue on VS2008
This commit is contained in:
parent
e6611dde0d
commit
ee90f5044e
|
@ -130,6 +130,7 @@ int tsk_fsm_act(tsk_fsm_t* self, tsk_fsm_action_id action, const void* cond_data
|
|||
tsk_bool_t found = tsk_false;
|
||||
tsk_bool_t terminates = tsk_false; /* thread-safeness -> DO NOT REMOVE THIS VARIABLE */
|
||||
int ret_exec = 0; /* success */
|
||||
tsk_fsm_entry_t* entry;
|
||||
|
||||
if(!self) {
|
||||
TSK_DEBUG_ERROR("Invalid parameter");
|
||||
|
@ -148,7 +149,7 @@ int tsk_fsm_act(tsk_fsm_t* self, tsk_fsm_action_id action, const void* cond_data
|
|||
if (!item || !item->data) {
|
||||
continue;
|
||||
}
|
||||
tsk_fsm_entry_t* entry = (tsk_fsm_entry_t*)item->data;
|
||||
entry = (tsk_fsm_entry_t*)item->data;
|
||||
if(((entry->from != tsk_fsm_state_any) && (entry->from != tsk_fsm_state_current)) && (entry->from != self->current)) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue