File xdelta-1.1.4-large-files.patch of Package xdelta
Index: xdelta-1.1.4/xdelta.c
===================================================================
--- xdelta-1.1.4.orig/xdelta.c
+++ xdelta-1.1.4/xdelta.c
@@ -956,7 +956,7 @@ xdp_generate_delta_int (XdeltaGenerator
XdeltaOutStream *data_out)
{
gint i, j, total_from_ck_count = 0, prime = 0, index = 0;
- gint total_from_len = 0;
+ gssize total_from_len = 0;
guint32* table = NULL;
if (QUERY_SIZE == 0)
Index: xdelta-1.1.4/xdmain.c
===================================================================
--- xdelta-1.1.4.orig/xdmain.c
+++ xdelta-1.1.4/xdmain.c
@@ -1811,7 +1811,7 @@ info_command (gint argc, gchar** argv)
edsio_md5_to_string (patch->cont->to_md5, buf);
xd_error ("output name: %s\n", patch->to_name);
- xd_error ("output length: %d\n", patch->cont->to_len);
+ xd_error ("output length: %u\n", patch->cont->to_len);
xd_error ("output md5: %s\n", buf);
xd_error ("patch from segments: %d\n", patch->cont->source_info_len);
@@ -1824,7 +1824,7 @@ info_command (gint argc, gchar** argv)
edsio_md5_to_string (si->md5, buf);
- xd_error ("%s\t%d\t%d\t%d\t%s\t%s\n",
+ xd_error ("%s\t%u\t%d\t%u\t%s\t%s\n",
buf,
si->len,
si->copies,