Fix signed/unsigned comparison warning. release-2.x.y

Wed, 12 Nov 2014 19:15:24 -0500

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 12 Nov 2014 19:15:24 -0500
branch
release-2.x.y
changeset 36255
a3fe30a2666b
parent 36251
ee51d84aacbf
child 36256
a437550a9308

Fix signed/unsigned comparison warning.

The test still works correctly without the fix, but this is quieter.

libpurple/protocols/mxit/markup.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/markup.c	Wed Nov 12 02:21:47 2014 -0500
+++ b/libpurple/protocols/mxit/markup.c	Wed Nov 12 19:15:24 2014 -0500
@@ -592,7 +592,7 @@
 	purple_debug_info( MXIT_PLUGIN_ID, "read the length '%i'\n", em_size );
 #endif
 
-	if ( len - pos < em_size ) {
+	if ( len - pos < (gsize)em_size ) {
 		/* not enough bytes left in data! */
 		purple_debug_error( MXIT_PLUGIN_ID, "Invalid emoticon received from wapsite (data length too long)\n");
 		g_free( em_id );

mercurial