Commit 81a6489e by Ulrich Weigand Committed by Ulrich Weigand

* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.

From-SVN: r68652
parent cef1ccd6
2003-06-28 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
2003-06-28 Nathan Sidwell <nathan@codesourcery.com> 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.robertl/eb133.C: Set expected line number. * g++.old-deja/g++.robertl/eb133.C: Set expected line number.
......
...@@ -145,7 +145,7 @@ void s(int n, ...) ...@@ -145,7 +145,7 @@ void s(int n, ...)
va_list list; va_list list;
va_start (list, n); va_start (list, n);
while (--n) while (n--)
{ {
int *a = va_arg (list, int *); int *a = va_arg (list, int *);
a[0] = n; a[0] = n;
...@@ -158,7 +158,7 @@ void z(int n, ...) ...@@ -158,7 +158,7 @@ void z(int n, ...)
va_list list; va_list list;
va_start (list, n); va_start (list, n);
while (--n) while (n--)
{ {
int *a = va_arg (list, int *); int *a = va_arg (list, int *);
bzero (a, sizeof (l)); bzero (a, sizeof (l));
...@@ -171,7 +171,7 @@ void c(int n, ...) ...@@ -171,7 +171,7 @@ void c(int n, ...)
va_list list; va_list list;
va_start (list, n); va_start (list, n);
while (--n) while (n--)
{ {
int *a = va_arg (list, int *); int *a = va_arg (list, int *);
if (a[n] != n) if (a[n] != n)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment