Fixed bug where labels were off by one

Was used in a previous fix but not necessary anymore
This commit is contained in:
2023-11-03 21:22:02 +00:00
parent 96a83db92b
commit 3fde04e1d2

View File

@@ -524,7 +524,7 @@ perr_t process_presults(presult_t *results, size_t res_count,
case PRES_LABEL: {
label_t label = {.name = res.label,
.name_size = strlen(res.label),
.addr = inst_count + 1};
.addr = inst_count};
darr_append_bytes(&label_registry, (byte *)&label, sizeof(label));
break;
}