--- libcroco-0.6.8/src/cr-tknzr.c.orig	2013-10-13 16:16:15.366174000 +0000
+++ libcroco-0.6.8/src/cr-tknzr.c	2013-10-13 16:19:01.289743600 +0000
@@ -1639,7 +1639,7 @@
         CRTknzr *result = NULL;
         CRInput *input = NULL;
 
-        input = cr_input_new_from_uri (a_file_uri, a_enc);
+        input = cr_input_new_from_uri ((const gchar *) a_file_uri, a_enc);
         g_return_val_if_fail (input != NULL, NULL);
 
         result = cr_tknzr_new (input);
@@ -1901,6 +1901,8 @@
 enum CRStatus
 cr_tknzr_consume_chars (CRTknzr * a_this, guint32 a_char, glong * a_nb_char)
 {
+	gulong consumed;
+	enum CRStatus status;
         g_return_val_if_fail (a_this && PRIVATE (a_this)
                               && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
 
@@ -1911,8 +1913,10 @@
                 PRIVATE (a_this)->token_cache = NULL;
         }
 
-        return cr_input_consume_chars (PRIVATE (a_this)->input,
-                                       a_char, a_nb_char);
+        status = cr_input_consume_chars (PRIVATE (a_this)->input,
+                                       a_char, &consumed);
+	*a_nb_char = (glong ) consumed;
+	return status;
 }
 
 enum CRStatus
