/pidgin/main: 2c1483188cf5: Fix a couple more signed/unsigned wa...

Elliott Sales de Andrade qulogic at pidgin.im
Thu Nov 13 04:12:38 EST 2014


Changeset: 2c1483188cf54221345dd53d8936a6264d2a0e0b
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2014-11-13 03:55 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/2c1483188cf5

Description:

Fix a couple more signed/unsigned warnings.

I still don't know why these only appear on Jenkins...

diffstat:

 libpurple/dnsquery.c              |  2 +-
 libpurple/tests/test_oscar_util.c |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git a/libpurple/dnsquery.c b/libpurple/dnsquery.c
--- a/libpurple/dnsquery.c
+++ b/libpurple/dnsquery.c
@@ -421,7 +421,7 @@ cope_with_gdb_brokenness(void)
 	if(n < 0)
 		return;
 
-	e[MIN(n,sizeof(e)-1)] = '\0';
+	e[MIN((gsize)n,sizeof(e)-1)] = '\0';
 
 	if(strstr(e,"gdb")) {
 		purple_debug_info("dns",
diff --git a/libpurple/tests/test_oscar_util.c b/libpurple/tests/test_oscar_util.c
--- a/libpurple/tests/test_oscar_util.c
+++ b/libpurple/tests/test_oscar_util.c
@@ -5,7 +5,7 @@
 
 START_TEST(test_oscar_util_name_compare)
 {
-	int i;
+	size_t i;
 	const char *good[] = {
 		"test",
 		"TEST",



More information about the Commits mailing list