Skip to content

Commit e72cebb

Browse files
committed
Fix crash due to unsigned index and 0 boundary loop.
1 parent 5f08ebd commit e72cebb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

supervisor/shared/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void memory_init(void) {
4343
}
4444

4545
void free_memory(supervisor_allocation* allocation) {
46-
uint8_t index = 0;
46+
int32_t index = 0;
4747
bool found = false;
4848
for (index = 0; index < CIRCUITPY_SUPERVISOR_ALLOC_COUNT; index++) {
4949
found = allocation == &allocations[index];

0 commit comments

Comments
 (0)