Skip to content

Commit

Permalink
Little cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperano committed Feb 17, 2025
1 parent 6c440aa commit c0f5e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/myworld/hummingbird/Fiber.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public enum State {
BLOCKED
}

protected State state;
private State state;
public final long[] registers;
private final IntStack callStack;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public int apply(Fiber fiber, Opcode ins, int regOffset, int ip, Opcode[] instru
var vm = fiber.vm;
((Fiber) vm.objMemory[(int) fiber.registers[regOffset + ins.dst()]]).setState(Fiber.State.RUNNABLE);
vm.enqueue(fiber);
return ip + 1;
return ip + 1;
}

}

0 comments on commit c0f5e52

Please sign in to comment.