|
@@ -197,7 +197,7 @@ static int process_zinfo_pack ( struct input_file *input,
|
197
|
197
|
if ( DEBUG ) {
|
198
|
198
|
fprintf ( stderr, "PACK [%#zx,%#zx) to [%#zx,%#zx)\n",
|
199
|
199
|
offset, ( offset + len ), output->len,
|
200
|
|
- ( output->len + packed_len ) );
|
|
200
|
+ ( size_t )( output->len + packed_len ) );
|
201
|
201
|
}
|
202
|
202
|
|
203
|
203
|
output->len += packed_len;
|
|
@@ -252,18 +252,18 @@ static int process_zinfo_add ( struct input_file *input,
|
252
|
252
|
( ( 1UL << ( 8 * datasize ) ) - 1 ) : ~0UL );
|
253
|
253
|
|
254
|
254
|
if ( val < 0 ) {
|
255
|
|
- fprintf ( stderr, "Add %s%#lx+%#lx at %#zx %sflows field\n",
|
|
255
|
+ fprintf ( stderr, "Add %s%#x+%#lx at %#zx %sflows field\n",
|
256
|
256
|
( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size,
|
257
|
257
|
offset, ( ( addend < 0 ) ? "under" : "over" ) );
|
258
|
258
|
return -1;
|
259
|
259
|
}
|
260
|
260
|
|
261
|
261
|
if ( val & ~mask ) {
|
262
|
|
- fprintf ( stderr, "Add %s%#lx+%#lx at %#zx overflows %d-byte "
|
|
262
|
+ fprintf ( stderr, "Add %s%#x+%#lx at %#zx overflows %d-byte "
|
263
|
263
|
"field (%d bytes too big)\n",
|
264
|
264
|
( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size,
|
265
|
265
|
offset, datasize,
|
266
|
|
- ( ( val - mask - 1 ) * add->divisor ) );
|
|
266
|
+ ( int )( ( val - mask - 1 ) * add->divisor ) );
|
267
|
267
|
return -1;
|
268
|
268
|
}
|
269
|
269
|
|
|
@@ -280,7 +280,7 @@ static int process_zinfo_add ( struct input_file *input,
|
280
|
280
|
}
|
281
|
281
|
|
282
|
282
|
if ( DEBUG ) {
|
283
|
|
- fprintf ( stderr, "ADDx [%#zx,%#zx) (%s%#lx+(%#lx/%#x)) = "
|
|
283
|
+ fprintf ( stderr, "ADDx [%#zx,%#zx) (%s%#x+(%#x/%#x)) = "
|
284
|
284
|
"%#lx\n", offset, ( offset + datasize ),
|
285
|
285
|
( ( addend < 0 ) ? "-" : "" ), abs ( addend ),
|
286
|
286
|
output->len, add->divisor, val );
|