diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-28 18:20:00 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-28 18:20:00 +0000 |
commit | f8aee7673698487d5c36894d77a1d03fd02db4e2 (patch) | |
tree | c4f87db2213e24164377d3edf53553988d37299e /gcc/ginclude | |
parent | 21f3ee9ce96ff3b6a20098571ba5f70e65bcbd05 (diff) | |
download | gcc-f8aee7673698487d5c36894d77a1d03fd02db4e2.tar.gz |
* ginclude/va-h8300.h (va_arg): Don't assume sizeof (int) == 4.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11626 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/va-h8300.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ginclude/va-h8300.h b/gcc/ginclude/va-h8300.h index 986e827f64d..25276586101 100644 --- a/gcc/ginclude/va-h8300.h +++ b/gcc/ginclude/va-h8300.h @@ -44,9 +44,9 @@ typedef void *__gnuc_va_list; #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 (int) \ + ? sizeof (TYPE) : __va_rounded_size (TYPE)))))) #define va_end(AP) ((void) 0) |