Properly trap long positional values

This commit is contained in:
Xavier Moffett 2023-12-13 18:13:06 -05:00
parent a161d15db8
commit 4a3094bbc6
2 changed files with 4 additions and 2 deletions

View file

@ -67,7 +67,8 @@ fn engage_aggregator<'a>(
current_target = Some(target);
targets.push(target);
},
Operand::Value(package) => if let Some(target) = current_target {
Operand::LongPos(_, package)
| Operand::Value(package) => if let Some(target) = current_target {
match queue.get_mut(target) {
Some(vec) => vec.push(package),
None => { queue.insert(target, vec!(package)); },

View file

@ -223,7 +223,8 @@ fn engage_aggregator<'a>(
base = false;
}
},
Operand::Value(package) => if current_target != "" {
Operand::LongPos(_, package)
| Operand::Value(package) => if current_target != "" {
match queue.get_mut(current_target.into()) {
Some(vec) => vec.push(package.into()),
None => { queue.insert(current_target.into(), vec!(package)); },