replaced void* with unsigned char* everywhere
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user