[ghex] converter: Squash some compiler warnings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] converter: Squash some compiler warnings
- Date: Thu, 1 Mar 2012 23:52:06 +0000 (UTC)
commit 27411c8a84b53781ef60a93c78c910a6299bdc93
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Feb 2 04:13:59 2012 -0500
converter: Squash some compiler warnings
These functions expect signed chars, not unsigned chars.
https://bugzilla.gnome.org/show_bug.cgi?id=671101
src/converter.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/converter.c b/src/converter.c
index 10f1eb1..ed2fa18 100644
--- a/src/converter.c
+++ b/src/converter.c
@@ -313,8 +313,8 @@ get_cursor_val_cb(GtkButton *button, Converter *conv)
}
}
-static guchar *
-clean(guchar *ptr)
+static gchar *
+clean(gchar *ptr)
{
while(*ptr == '0')
ptr++;
@@ -326,7 +326,7 @@ clean(guchar *ptr)
static void
set_values(Converter *conv, gulong val)
{
- guchar buffer[CONV_BUFFER_LEN + 1];
+ gchar buffer[CONV_BUFFER_LEN + 1];
gint i, nhex, nbytes;
gulong tmp = val;
@@ -376,7 +376,7 @@ set_values(Converter *conv, gulong val)
static void
conv_entry_cb(GtkEntry *entry, gint base)
{
- guchar buffer[33];
+ gchar buffer[33];
const gchar *text;
gchar *endptr;
gulong val = converter->value;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]