summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-main.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r--xdelta3/xdelta3-main.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h
index 8a1ccf8..0e16e53 100644
--- a/xdelta3/xdelta3-main.h
+++ b/xdelta3/xdelta3-main.h
@@ -1256,14 +1256,14 @@ main_print_window (xd3_stream* stream, main_file *xfile)
1256 1256
1257 VC(UT " %06"Q"u %03u %s %3u", stream->dec_winstart + size, 1257 VC(UT " %06"Q"u %03u %s %3u", stream->dec_winstart + size,
1258 option_print_cpymode ? code : 0, 1258 option_print_cpymode ? code : 0,
1259 xd3_rtype_to_string (stream->dec_current1.type, option_print_cpymode), 1259 xd3_rtype_to_string ((xd3_rtype) stream->dec_current1.type, option_print_cpymode),
1260 (usize_t) stream->dec_current1.size)VE; 1260 (usize_t) stream->dec_current1.size)VE;
1261 1261
1262 if (stream->dec_current1.type != XD3_NOOP) 1262 if (stream->dec_current1.type != XD3_NOOP)
1263 { 1263 {
1264 if (stream->dec_current1.type >= XD3_CPY) 1264 if (stream->dec_current1.type >= XD3_CPY)
1265 { 1265 {
1266 VC(UT " @%-"Q"6u", 1266 VC(UT " @%-6"Q"u",
1267 stream->dec_cpyoff + stream->dec_current1.addr)VE; 1267 stream->dec_cpyoff + stream->dec_current1.addr)VE;
1268 } 1268 }
1269 else 1269 else
@@ -1277,7 +1277,7 @@ main_print_window (xd3_stream* stream, main_file *xfile)
1277 if (stream->dec_current2.type != XD3_NOOP) 1277 if (stream->dec_current2.type != XD3_NOOP)
1278 { 1278 {
1279 VC(UT " %s %3u", 1279 VC(UT " %s %3u",
1280 xd3_rtype_to_string (stream->dec_current2.type, 1280 xd3_rtype_to_string ((xd3_rtype) stream->dec_current2.type,
1281 option_print_cpymode), 1281 option_print_cpymode),
1282 (usize_t)stream->dec_current2.size)VE; 1282 (usize_t)stream->dec_current2.size)VE;
1283 1283
@@ -1355,7 +1355,7 @@ main_print_func (xd3_stream* stream, main_file *xfile)
1355 1355
1356 if (xfile->snprintf_buf == NULL) 1356 if (xfile->snprintf_buf == NULL)
1357 { 1357 {
1358 if ((xfile->snprintf_buf = main_malloc(SNPRINTF_BUFSIZE)) == NULL) 1358 if ((xfile->snprintf_buf = (uint8_t*)main_malloc(SNPRINTF_BUFSIZE)) == NULL)
1359 { 1359 {
1360 return ENOMEM; 1360 return ENOMEM;
1361 } 1361 }