We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b13b2 commit 0cd9032Copy full SHA for 0cd9032
2019/day/9/part/1/solve.ts
@@ -32,7 +32,7 @@ function program(memory: number[]) {
32
position = instructionPointer++;
33
break;
34
case 2:
35
- position = relativeBase + memory[instructionPointer++] ?? 0;
+ position = relativeBase + (memory[instructionPointer++] ?? 0);
36
37
default:
38
throw new Error("unreachable");
0 commit comments