summaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-30 12:11:09 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-30 12:11:09 +0000
commitdd283dc9ad9b5edf84988944c697649345e6d6c7 (patch)
treefc92b19e32c2bba57ffe488bf72e6b7396d73d08 /gcc/ginclude/stdarg.h
parente6bec1df6af929994bcc3b925607046772a00ba9 (diff)
downloadgcc-dd283dc9ad9b5edf84988944c697649345e6d6c7.tar.gz
(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
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rw-r--r--gcc/ginclude/stdarg.h6
1 files changed, 3 insertions, 3 deletions
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 */