[poppler] 2 commits - glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Aug 1 06:50:29 PDT 2009


 glib/demo/attachments.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 87e2af3454348f5568d155c15af5d85268e47f1b
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sat Aug 1 15:48:02 2009 +0200

    [glib-demo] Add cast to make sure the comparison is always valid

diff --git a/glib/demo/attachments.c b/glib/demo/attachments.c
index bec823b..28eb62e 100644
--- a/glib/demo/attachments.c
+++ b/glib/demo/attachments.c
@@ -252,7 +252,7 @@ pgd_attachments_validate_button_clicked (GtkButton   *button,
 		gint i;
 	
 		for (i = 0; i < digest_len; i++) {
-			if (attachment->checksum->str[i] != digest[i]) {
+			if ((guint8)attachment->checksum->str[i] != digest[i]) {
 				valid = FALSE;
 				break;
 			}
commit 464e95ef451103daddc9a30cd26b986291f02176
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sat Aug 1 15:47:25 2009 +0200

    [glib-demo] Add missing return

diff --git a/glib/demo/attachments.c b/glib/demo/attachments.c
index c13147b..bec823b 100644
--- a/glib/demo/attachments.c
+++ b/glib/demo/attachments.c
@@ -189,6 +189,8 @@ attachment_save_callback (const gchar  *buf,
 	GChecksum *cs = (GChecksum *)data;
 
 	g_checksum_update (cs, buf, count);
+
+	return TRUE;
 }
 
 static void


More information about the poppler mailing list