[gnome-terminal] Fix some compiler warnings



commit b948eed15b81bf87939d41d7c71ffff900e23a08
Author: Christian Persch <chpe gnome org>
Date:   Fri Sep 3 13:58:32 2010 +0200

    Fix some compiler warnings

 src/terminal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal.c b/src/terminal.c
index ec949f2..391a424 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -88,11 +88,11 @@ ay_to_strv (GVariant *variant,
 
   len = data_len;
   do {
-    gsize string_len;
+    gssize string_len;
 
     nullbyte = memchr (data, '\0', len);
 
-    string_len = nullbyte ? (gsize) (nullbyte - data) : len;
+    string_len = nullbyte ? (gssize) (nullbyte - data) : len;
     g_ptr_array_add (argv, g_strndup (data, string_len));
 
     len -= string_len + 1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]