From dd283dc9ad9b5edf84988944c697649345e6d6c7 Mon Sep 17 00:00:00 2001 From: kenner Date: Sun, 30 Apr 1995 12:11:09 +0000 Subject: (va_arg): Don't assume __va_rounded_size (char) has the value of 4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9550 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ginclude/stdarg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/ginclude/stdarg.h') diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 0ac176e7aea..b8d85e8f729 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -84,9 +84,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */ /* This is for big-endian machines; small args are padded downward. */ #define va_arg(AP, TYPE) \ (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \ - *((TYPE *) (void *) ((char *) (AP) - ((sizeof (TYPE) < 4 \ - ? sizeof (TYPE) \ - : __va_rounded_size (TYPE)))))) + *((TYPE *) (void *) ((char *) (AP) \ + - ((sizeof (TYPE) < __va_rounded_size (char) \ + ? sizeof (TYPE) : __va_rounded_size (TYPE)))))) #endif /* big-endian */ #endif /* _STDARG_H */ -- cgit v1.2.1