diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-30 18:20:03 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-19 15:09:51 -0400 |
commit | 3090cf0da4edde67234faaeda18de91fa91aa5ef (patch) | |
tree | a113ed274f9cd67de86348ebb8166f12a7cb7bcd /firmware/include | |
parent | 59edcc57a28b883b05d6d50b42cccc764191b0f3 (diff) | |
download | rockbox-3090cf0da4edde67234faaeda18de91fa91aa5ef.tar.gz rockbox-3090cf0da4edde67234faaeda18de91fa91aa5ef.zip |
buflib: update BUFLIB_ALLOC_OVERHEAD
Allocation overhead should be 5 units, not 6.
Change-Id: I30aa0925aa49eb25d232f7de2bf8b8ce1509d862
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/buflib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib.h index e805ebbf1b..5bd8d73ada 100644 --- a/firmware/include/buflib.h +++ b/firmware/include/buflib.h | |||
@@ -65,7 +65,7 @@ struct buflib_context | |||
65 | * BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to | 65 | * BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to |
66 | * buflib_alloc_ex()) + pad to pointer size | 66 | * buflib_alloc_ex()) + pad to pointer size |
67 | */ | 67 | */ |
68 | #define BUFLIB_ALLOC_OVERHEAD (6*sizeof(union buflib_data)) | 68 | #define BUFLIB_ALLOC_OVERHEAD (5*sizeof(union buflib_data)) |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Callbacks used by the buflib to inform allocation that compaction | 71 | * Callbacks used by the buflib to inform allocation that compaction |