cwFlowCross.cpp: Fixed missing 'break' in _get_flow_index().
This commit is contained in:
parent
22e1222742
commit
d30a112cae
@ -235,9 +235,15 @@ namespace cw
|
|||||||
|
|
||||||
switch( destId )
|
switch( destId )
|
||||||
{
|
{
|
||||||
case kCurDestId: flow_idx = p->cur_idx; break;
|
case kCurDestId:
|
||||||
case kNextDestId: flow_idx = (p->cur_idx + 1) % p->netN;
|
flow_idx = p->cur_idx;
|
||||||
default:
|
break;
|
||||||
|
|
||||||
|
case kNextDestId:
|
||||||
|
flow_idx = (p->cur_idx + 1) % p->netN;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user