fixes a bug in the counter with preset

This commit is contained in:
hneemann 2019-09-24 19:25:30 +02:00
parent 7005add05b
commit 0f60483bcf

View File

@ -66,7 +66,7 @@ public class CounterPreset extends Node implements Element {
long m = attributes.get(Keys.MAX_VALUE);
if (m == 0)
m = (1L << bits) - 1;
m = Bits.mask(bits);
maxValue = m;
probe = attributes.get(Keys.VALUE_IS_PROBE);