mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 07:48:29 -04:00
fixes a bug in the test case bits(n,m) command if n is 64; fixes #535
This commit is contained in:
parent
9c15089b14
commit
661bd7f4cc
@ -34,7 +34,7 @@ public class ValueAppenderBits implements ValueAppender {
|
||||
for (int i = 0; i < bitCount; i++) {
|
||||
boolean v = (value & mask) != 0;
|
||||
values.add(new Value(v ? 1 : 0));
|
||||
mask >>= 1;
|
||||
mask >>>= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user