engine: convert array sizes to element count.

The array sizes, such as instructions_size, contains the size of the
array in bytes. This is wrong and should the max element count of the
array.

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar
2026-01-17 03:26:47 -04:00
parent 3cf17ac088
commit a507a5d53e
2 changed files with 6 additions and 6 deletions

View File

@@ -44,13 +44,13 @@ BAL_ALIGNED(64) typedef struct
/// Linear buffer of constants generated in the current compilation unit.
bal_constant_t *constants;
/// The size of the `source_variables` array in bytes.
/// The size of the `source_variables` array.
size_t source_variables_size;
/// The size of the `instructions` array in bytes.
/// The size of the `instructions` array.
size_t instructions_size;
/// The size of the `constants` array in bytes.
/// The size of the `constants` array.
size_t constants_size;
/// The current number of instructions emitted.