--- a/libpurple/protocols/yahoo/yahoo_packet.c Wed Nov 12 19:15:24 2014 -0500 +++ b/libpurple/protocols/yahoo/yahoo_packet.c Thu Nov 13 00:56:55 2014 -0500 @@ -139,7 +139,7 @@ char key[64]; const guchar *delimiter; gboolean accept; - int x; + guint x; struct yahoo_pair *pair; while (pos + 1 < len) @@ -370,7 +370,7 @@ return ret; } - if (ret < len) { + if ((gsize)ret < len) { if (yd->txhandler == 0) yd->txhandler = purple_input_add(yd->fd, PURPLE_INPUT_WRITE, yahoo_packet_send_can_write, yd);