Skip to content

Commit

Permalink
Fix comparision… Again.
Browse files Browse the repository at this point in the history
Damn Integer and Long cache… I noticed that on day 13.
  • Loading branch information
michael-simons committed Dec 13, 2019
1 parent 374a6dc commit 417a26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2019/day07/java/Solution.java
Expand Up @@ -47,7 +47,7 @@ private Computer(Integer[] memory) {

private final Map<Integer, BiFunction<Integer, Integer, Boolean>> comparisons = Map.of(
7, (a, b) -> a < b,
8, (a, b) -> a == b
8, (a, b) -> a.equals(b)
);

public Optional<Integer> run() {
Expand Down
2 changes: 1 addition & 1 deletion 2019/day11/java/Solution.java
Expand Up @@ -38,7 +38,7 @@ public static class Computer {

private final Map<Integer, BiFunction<Long, Long, Boolean>> comparisons = Map.of(
7, (a, b) -> a < b,
8, (a, b) -> a == b
8, (a, b) -> a.equals(b)
);

public static Computer loadProgram(List<Long> instructions) {
Expand Down

0 comments on commit 417a26a

Please sign in to comment.