replaced void* with unsigned char* everywhere

This commit is contained in:
2025-02-08 00:53:23 +11:00
parent 470836a390
commit c646904407
8 changed files with 17 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ Toy_Bucket* Toy_allocateBucket(unsigned int capacity) {
return bucket;
}
void* Toy_partitionBucket(Toy_Bucket** bucketHandle, unsigned int amount) {
unsigned char* Toy_partitionBucket(Toy_Bucket** bucketHandle, unsigned int amount) {
//BUGFIX: the endpoint must be aligned to the word size, otherwise you'll get a bus error from moving pointers
amount = (amount + 3) & ~3;