mirror of
https://github.com/Qortal/AT.git
synced 2025-01-30 19:02:14 +00:00
Tidy MachineState.Flags class
This commit is contained in:
parent
18f679e6eb
commit
c9fdd424e4
@ -609,7 +609,7 @@ public class MachineState {
|
|||||||
state.previousBalance = byteBuffer.getLong();
|
state.previousBalance = byteBuffer.getLong();
|
||||||
|
|
||||||
// Various flags (reverse order to toBytes)
|
// Various flags (reverse order to toBytes)
|
||||||
Flags flags = state.new Flags(byteBuffer.getInt());
|
Flags flags = new Flags(byteBuffer.getInt());
|
||||||
boolean hasNonZeroB = flags.pop();
|
boolean hasNonZeroB = flags.pop();
|
||||||
boolean hasNonZeroA = flags.pop();
|
boolean hasNonZeroA = flags.pop();
|
||||||
boolean hasFrozenBalance = flags.pop();
|
boolean hasFrozenBalance = flags.pop();
|
||||||
@ -650,7 +650,7 @@ public class MachineState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Class for pushing/popping boolean flags onto/from an int */
|
/** Class for pushing/popping boolean flags onto/from an int */
|
||||||
private class Flags {
|
private static class Flags {
|
||||||
private int flags;
|
private int flags;
|
||||||
|
|
||||||
public Flags() {
|
public Flags() {
|
||||||
|
Loading…
Reference in New Issue
Block a user