From c4a605b69e315b1faae60cc0ab5637c364048552 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 19 Jan 2011 13:02:24 +0000 Subject: [PATCH] va_arg must be used with int instead of char/short. All integer arguments are at least promoted to int. [r28259] --- ir/libcore/lc_printf_arg_types.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/libcore/lc_printf_arg_types.def b/ir/libcore/lc_printf_arg_types.def index 54ee82939..6de88bc91 100644 --- a/ir/libcore/lc_printf_arg_types.def +++ b/ir/libcore/lc_printf_arg_types.def @@ -1,5 +1,5 @@ -LC_ARG_TYPE(char, char) -LC_ARG_TYPE(short, short) +LC_ARG_TYPE(int, char) +LC_ARG_TYPE(int, short) LC_ARG_TYPE(int, int) LC_ARG_TYPE(long, long) LC_ARG_TYPE(LC_LONGLONG, long_long) -- 2.20.1