libpurple/protocols/zephyr/ZReadAscii.c

branch
release-2.x.y
changeset 36256
a437550a9308
parent 36029
cd7db320cf5c
child 36257
c5445f25f90f
child 43153
2e4624a59df5
--- a/libpurple/protocols/zephyr/ZReadAscii.c	Wed Nov 12 19:15:24 2014 -0500
+++ b/libpurple/protocols/zephyr/ZReadAscii.c	Thu Nov 13 00:56:55 2014 -0500
@@ -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