gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5aa45592d069b8b5dace392df4ba65798ca985c0 parent 1e1a7cc415d22937c07c5bb238494f74e526e636 Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Sun, 2 Nov 2025 00:37:42 -0700 bankpack: fix linker file output counter size bug (#828) Diffstat:
| M | gbdk-support/bankpack/files.c | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gbdk-support/bankpack/files.c b/gbdk-support/bankpack/files.c @@ -103,9 +103,11 @@ static int linkerfile_order_compare(const void* a, const void* b) { // - See area_item_compare() for full details of how linkerfile_order gets set static void linkerfile_output_order_sort(const file_item * p_files, file_order_t * p_filelist_order, const uint32_t count) { + uint32_t c; + if (p_filelist_order && p_files) { // Create sort-able list from list of files and their assigned linkerfile order - for (uint8_t c = 0; c < filelist.count; c++) { + for (c = 0; c < filelist.count; c++) { p_filelist_order[c].file_id = c; p_filelist_order[c].linkerfile_order = p_files[c].linkerfile_order; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.