From 1127cb64526c86e32beba99b4c18ffd74bc2df33 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 4 May 2015 09:37:53 -0600 Subject: [PATCH] fix unsigned->size_t build regression --- src/lzma-encode.cpp | 4 ++-- src/tools/bootimage-generator/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lzma-encode.cpp b/src/lzma-encode.cpp index 8821e4c6af..b15ebe54eb 100644 --- a/src/lzma-encode.cpp +++ b/src/lzma-encode.cpp @@ -27,8 +27,8 @@ namespace vm { uint8_t* encodeLZMA(System* s, avian::util::Alloc* a, uint8_t* in, - unsigned inSize, - unsigned* outSize) + size_t inSize, + size_t* outSize) { const unsigned PropHeaderSize = 5; const unsigned HeaderSize = 13; diff --git a/src/tools/bootimage-generator/main.cpp b/src/tools/bootimage-generator/main.cpp index a0d3db5f09..3a9736dc8e 100644 --- a/src/tools/bootimage-generator/main.cpp +++ b/src/tools/bootimage-generator/main.cpp @@ -1852,7 +1852,7 @@ void writeBootImage2(Thread* t, } uint8_t* bootimage; - unsigned bootimageLength; + size_t bootimageLength; if (useLZMA) { #ifdef AVIAN_USE_LZMA bootimage = encodeLZMA(t->m->system, @@ -1861,7 +1861,7 @@ void writeBootImage2(Thread* t, bootimageData.length, &bootimageLength); - fprintf(stderr, "compressed heap size %d\n", bootimageLength); + fprintf(stderr, "compressed heap size %zu\n", bootimageLength); #else abort(t); #endif