summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-16 00:29:18 -0700
committerScott Shawcroft <scott@tannewt.org>2018-08-16 00:29:18 -0700
commite72cebbad65c054ac3bb03a12d6c1102a78c834f (patch)
tree20745a9cfc6b593aa7bb7bb339fa79c1378bbf66 /supervisor
parent5f08ebdfc80ecc40260240ac5fb4ed72aafc6381 (diff)
Fix crash due to unsigned index and 0 boundary loop.
Diffstat (limited to 'supervisor')
-rwxr-xr-xsupervisor/shared/memory.c2
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];