From b4b00cb6d2a3aa4ca6981e869b96af195c861dd3 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 13 Apr 2023 19:27:20 -0400 Subject: fix the thing with the thing --- src/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/program.c') diff --git a/src/program.c b/src/program.c index 79ab0ea..aa113b6 100644 --- a/src/program.c +++ b/src/program.c @@ -159,7 +159,7 @@ void tape_set(Tape* tape, uint8_t value) { } uint8_t* tape_ptr(Tape* tape) { - return tape->data; + return tape->data + tape->index; } void tape_free(Tape* tape) { -- cgit v1.2.3-freya