diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 00:29:18 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 00:29:18 -0700 |
| commit | e72cebbad65c054ac3bb03a12d6c1102a78c834f (patch) | |
| tree | 20745a9cfc6b593aa7bb7bb339fa79c1378bbf66 /supervisor/shared/memory.c | |
| parent | 5f08ebdfc80ecc40260240ac5fb4ed72aafc6381 (diff) | |
Fix crash due to unsigned index and 0 boundary loop.
Diffstat (limited to 'supervisor/shared/memory.c')
| -rwxr-xr-x | supervisor/shared/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/memory.c b/supervisor/shared/memory.c index 34c5dfb6f..6c8be3be8 100755 --- a/supervisor/shared/memory.c +++ b/supervisor/shared/memory.c @@ -43,7 +43,7 @@ void memory_init(void) { } void free_memory(supervisor_allocation* allocation) { - uint8_t index = 0; + int32_t index = 0; bool found = false; for (index = 0; index < CIRCUITPY_SUPERVISOR_ALLOC_COUNT; index++) { found = allocation == &allocations[index]; |
