diff options
author | Marvin Borner | 2023-05-21 18:09:04 +0200 |
---|---|---|
committer | Marvin Borner | 2023-05-21 18:51:58 +0200 |
commit | 7ebabbb0022bce1cd6c05db583acb20d8659a356 (patch) | |
tree | d95ce3a5f6897ad19bc4ea6ccdfb603035a5908d /src/build.c | |
parent | 8499010b91a2c7496d6af74cce35a6b4e0378633 (diff) |
Added additional optimizer
This will be useful for variadic index lengths
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index 9fdcad4..e396407 100644 --- a/src/build.c +++ b/src/build.c @@ -47,7 +47,7 @@ static void rec_write_bblc(struct tree *tree, FILE *file, char *byte, int *bit) write_bit(1, file, byte, bit); // TODO: The bit-order of encoded shorts is kinda arbitrary - short ref = tree->u.ref.index; + short ref = tree->u.ref.table_index; for (int i = 0; i < 16; i++) write_bit((ref >> i) & 1, file, byte, bit); break; |