mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
fixes a bug in the counter with preset
This commit is contained in:
parent
7005add05b
commit
0f60483bcf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user