libpurple/protocols/zephyr/ZReadAscii.c

changeset 34304
faf0414a8b51
parent 31294
73607ab89c6f
child 36002
31a8779e91d4
--- a/libpurple/protocols/zephyr/ZReadAscii.c	Tue Aug 20 14:04:56 2013 +0200
+++ b/libpurple/protocols/zephyr/ZReadAscii.c	Wed Aug 21 14:59:29 2013 +0200
@@ -10,7 +10,7 @@
 
 #include "internal.h"
 
-#define Z_cnvt_xtoi(c)  ((temp=(c)-'0'),(temp<10)?temp:((temp-='A'-'9'-1),(temp<16)?temp:-1))
+#define Z_cnvt_xtoi(c)  ((temp=(c)-'0'),(temp<10)?(int)temp:((temp-='A'-'9'-1),(temp<16)?(int)temp:-1))
 
 Code_t ZReadAscii(ptr, len, field, num)
     char *ptr;

mercurial