Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we coerce multiplication factors to Int for Baggy
  • Loading branch information
lizmat committed Oct 4, 2013
1 parent be96b97 commit 560b416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Baggy.pm
Expand Up @@ -31,7 +31,7 @@ my role Baggy does QuantHash {
my %e;
for @pairs {
when Pair {
(%e{$_.key.WHICH} //= ($_.key => 0)).value += $_.value;
(%e{$_.key.WHICH} //= ($_.key => 0)).value += $_.value.Int;
}
default {
(%e{$_.WHICH} //= ($_ => 0)).value++;
Expand Down

0 comments on commit 560b416

Please sign in to comment.