[python] Port: we used the wrong variable

Found by clang-analyzer
This commit is contained in:
Émilie Feral
2020-11-05 10:21:46 +01:00
committed by LeaNumworks
parent 5afdec00b8
commit 7acec88006

View File

@@ -177,7 +177,7 @@ void MicroPython::collectRootsAtAddress(char * address, int byteLength) {
alignedByteLength += reinterpret_cast<uintptr_t>(address) & bitMaskOnes;
assert(alignedAddress % ((uintptr_t)sizeof(uintptr_t)) == 0);
gc_collect_root((void **)alignedAddress, byteLength / sizeof(uintptr_t));
gc_collect_root((void **)alignedAddress, alignedByteLength / sizeof(uintptr_t));
}
KDColor MicroPython::Color::Parse(mp_obj_t input, Mode mode){