mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-19 09:54:49 -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);
|
long m = attributes.get(Keys.MAX_VALUE);
|
||||||
if (m == 0)
|
if (m == 0)
|
||||||
m = (1L << bits) - 1;
|
m = Bits.mask(bits);
|
||||||
maxValue = m;
|
maxValue = m;
|
||||||
|
|
||||||
probe = attributes.get(Keys.VALUE_IS_PROBE);
|
probe = attributes.get(Keys.VALUE_IS_PROBE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user