mirror of
https://github.com/pound-emu/ballistic.git
synced 2026-01-31 01:15:21 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user