diff --git a/libs/core/pxt.cpp b/libs/core/pxt.cpp index 99e4f0f7..4d596538 100644 --- a/libs/core/pxt.cpp +++ b/libs/core/pxt.cpp @@ -338,10 +338,10 @@ namespace pxt { void Segment::print() { - printf("Segment: %x, length: %u, size: %u\n", data, (uint)length, (uint)size); - for(uint i = 0; i < size; i++) + printf("Segment: %x, length: %u, size: %u\n", data, (uint32_t)length, (uint32_t)size); + for(uint32_t i = 0; i < size; i++) { - printf("%d ",(uint)data[i]); + printf("%d ",(uint32_t)data[i]); } printf("\n"); }