mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Changed size_t to unsigned int
This commit is contained in:
@@ -40,7 +40,7 @@ void Toy_pushStack(Toy_Stack** stack, Toy_Value value) {
|
||||
(*stack)->capacity = (*stack)->capacity < MIN_CAPACITY ? MIN_CAPACITY : (*stack)->capacity * 2;
|
||||
}
|
||||
|
||||
size_t newCapacity = (*stack)->capacity;
|
||||
unsigned int newCapacity = (*stack)->capacity;
|
||||
|
||||
(*stack) = realloc((*stack), newCapacity * sizeof(Toy_Value) + sizeof(Toy_Stack));
|
||||
|
||||
@@ -72,7 +72,7 @@ Toy_Value Toy_popStack(Toy_Stack** stack) {
|
||||
//shrink if possible
|
||||
if ((*stack)->count > MIN_CAPACITY && (*stack)->count < (*stack)->capacity / 4) {
|
||||
(*stack)->capacity /= 2;
|
||||
size_t newCapacity = (*stack)->capacity;
|
||||
unsigned int newCapacity = (*stack)->capacity;
|
||||
|
||||
(*stack) = realloc((*stack), (*stack)->capacity * sizeof(Toy_Value) + sizeof(Toy_Stack));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user