From 98afe11c85ad4834c05fffb226d6b9e7926f4f88 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 9 Mar 2014 22:22:43 +0800 Subject: [PATCH] Use intptr_t to cast pointer --- lib/libtcc1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libtcc1.c b/lib/libtcc1.c index b46fb5d4..067592c3 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -28,6 +28,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include + #define W_TYPE_SIZE 32 #define BITS_PER_UNIT 8 @@ -688,7 +690,7 @@ void *__va_arg(struct __va_list_struct *ap, case __va_stack: use_overflow_area: ap->overflow_arg_area += size; - ap->overflow_arg_area = (char*)((long long)(ap->overflow_arg_area + align - 1) & -(long long)align); + ap->overflow_arg_area = (char*)((intptr_t)(ap->overflow_arg_area + align - 1) & -(intptr_t)align); return ap->overflow_arg_area - size; default: