fix unsigned->size_t build regression

This commit is contained in:
Joel Dice 2015-05-04 09:37:53 -06:00
parent 3b9089e265
commit 1127cb6452
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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