refactor(all): Fixed alloc and moved growing logic to another function

OK, so evrything was a fucknig mess, it still kinda is, AI helped
me to clean my own mess, it really sucks but the fucking debugger
and address sanitizer were not working, also, there were small
small errors so no big deal but still, a bit sad, also changed a
the way i cast from uint8_t to double and int in the tests, may
change that i guess, verything else i might say is good :)
This commit is contained in:
2026-04-03 12:44:01 -06:00
parent 39dfded924
commit 0c2e819c2b
5 changed files with 129 additions and 53 deletions

View File

@@ -7,4 +7,9 @@ target_link_libraries(test_arena
cmocka::cmocka
)
enable_sanitizers(test_arena)
target_compile_options(test_arena PRIVATE -fsanitize=address -fno-omit-frame-pointer)
target_link_options(test_arena PRIVATE -fsanitize=address)
add_test(NAME arena_tests COMMAND test_arena)