3
0
mirror of https://github.com/Qortal/AT.git synced 2025-01-30 10:52:14 +00:00

Tidy MachineState.Flags class

This commit is contained in:
catbref 2020-04-07 17:00:21 +01:00
parent 18f679e6eb
commit c9fdd424e4

View File

@ -609,7 +609,7 @@ public class MachineState {
state.previousBalance = byteBuffer.getLong();
// Various flags (reverse order to toBytes)
Flags flags = state.new Flags(byteBuffer.getInt());
Flags flags = new Flags(byteBuffer.getInt());
boolean hasNonZeroB = flags.pop();
boolean hasNonZeroA = flags.pop();
boolean hasFrozenBalance = flags.pop();
@ -650,7 +650,7 @@ public class MachineState {
}
/** Class for pushing/popping boolean flags onto/from an int */
private class Flags {
private static class Flags {
private int flags;
public Flags() {