Skip to content
Snippets Groups Projects
Commit c7908c3e authored by Kipp Cannon's avatar Kipp Cannon
Browse files

trigger_rate: fix arithmetic corruption

- because the parent class of the ratebin type is immutable, its out-of-place arithmetic operations don't necessarily return new objects since if the boundaries are identical the object can be re-rused.  but ratebin is not, really, immutable and its own out-of-place arithmetic operations assign values to the internal ._count attribute.  if the parent class' arithmetic methods return references to one or the other of the input arguments then ratebin's methods corrup the input object's count values.
- this patch fixes by ensuring a new object is created in the event the ._count atribute must be assigned a new value.
parent 2844e088
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment