fixed it somehow, still WIP

This commit is contained in:
2025-11-15 18:25:34 +01:00
parent d36b6d2c45
commit 92ca008516
5 changed files with 32 additions and 8 deletions
+2
View File
@@ -1,6 +1,8 @@
#include "cig.h"
void *buffer_allocator_alloc(buffer_allocator_t *this, size_t bytes) {
// TODO: use max-align
// also make the default function crash if outOf memory?
size_t new_size = this->size + bytes;
if (new_size > this->capacity) {
return NULL;