From 1374c45f6b1fb7838ef42144bdba5ef118045485 Mon Sep 17 00:00:00 2001 From: Gang Zhuo Date: Mon, 20 Mar 2017 21:23:58 +0800 Subject: [PATCH] fix build warning --- pcs/pcs_passport_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcs/pcs_passport_dv.c b/pcs/pcs_passport_dv.c index 73d66841..4bbdbc70 100644 --- a/pcs/pcs_passport_dv.c +++ b/pcs/pcs_passport_dv.c @@ -248,7 +248,7 @@ static void buf_encode_xor(char *buf, int len) static void buf_decode_xor(char *buf, int len) { unsigned char *p = (unsigned char*)buf + len - 1; - while (p > buf) { + while (p > (unsigned char*)buf) { *p = (*p ^ *(p - 1)) & 0xFF; p--; }