diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-03 20:23:25 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-03 20:23:25 +0000 |
commit | 26f56b67f3ad2adb704ba31ac0359bc48905e7b0 (patch) | |
tree | f203280d387ba27b4536ebe49d3105902285628a /gcc/ginclude | |
parent | 22f21985f4f5f054178ffeaa20c64d068cb19deb (diff) | |
download | gcc-26f56b67f3ad2adb704ba31ac0359bc48905e7b0.tar.gz |
(va_arg, mips3 case): Use __PTRDIFF_TYPE__ not int in casts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8716 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/va-mips.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ginclude/va-mips.h b/gcc/ginclude/va-mips.h index 33774dcff62..02152bfc972 100644 --- a/gcc/ginclude/va-mips.h +++ b/gcc/ginclude/va-mips.h @@ -66,11 +66,11 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */ #if __mips==3 #ifdef __MIPSEB__ #define va_arg(__AP, __type) \ - ((__type *) (void *) (__AP = (char *) ((((int)__AP + 8 - 1) & -8) \ + ((__type *) (void *) (__AP = (char *) ((((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8) \ + __va_rounded_size (__type))))[-1] #else #define va_arg(__AP, __type) \ - ((__AP = (char *) ((((int)__AP + 8 - 1) & -8) \ + ((__AP = (char *) ((((__PTRDIFF_TYPE__)__AP + 8 - 1) & -8) \ + __va_rounded_size (__type))), \ *(__type *) (void *) (__AP - __va_rounded_size (__type))) #endif |