Index: glib/gchecksum.c
===================================================================
--- glib/gchecksum.c	(revision 6595)
+++ glib/gchecksum.c	(working copy)
@@ -1198,7 +1198,7 @@ g_checksum_free (GChecksum *checksum)
 void
 g_checksum_update (GChecksum    *checksum,
                    const guchar *data,
-                   gsize         length)
+                   gssize        length)
 {
   g_return_if_fail (checksum != NULL);
   g_return_if_fail (data != NULL);
@@ -1402,7 +1402,7 @@ g_compute_checksum_for_data (GChecksumTy
 gchar *
 g_compute_checksum_for_string (GChecksumType  checksum_type,
                                const gchar   *str,
-                               gsize          length)
+                               gssize         length)
 {
   g_return_val_if_fail (IS_VALID_TYPE (checksum_type), NULL);
   g_return_val_if_fail (str != NULL, NULL);
Index: glib/gchecksum.h
===================================================================
--- glib/gchecksum.h	(revision 6595)
+++ glib/gchecksum.h	(working copy)
@@ -54,7 +54,7 @@ GChecksum *           g_checksum_copy   
 void                  g_checksum_free       (GChecksum        *checksum);
 void                  g_checksum_update     (GChecksum        *checksum,
                                              const guchar     *data,
-                                             gsize             length);
+                                             gssize            length);
 G_CONST_RETURN gchar *g_checksum_get_string (GChecksum        *checksum);
 void                  g_checksum_get_digest (GChecksum        *checksum,
                                              guint8           *buffer,
@@ -65,7 +65,7 @@ gchar *g_compute_checksum_for_data   (GC
                                       gsize          length);
 gchar *g_compute_checksum_for_string (GChecksumType  checksum_type,
                                       const gchar   *str,
-                                      gsize          length);
+                                      gssize         length);
 
 G_END_DECLS
 
