From a5732a3067320073cebbab111db3701bf6a133ea Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 30 Sep 1994 22:53:36 +0000 Subject: * lynx-nat.c (child_wait): Use status.w_status, not status, in arithmetic. status is a `union wait'. --- gdb/lynx-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/lynx-nat.c') diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c index b7bc824..ea224f0 100644 --- a/gdb/lynx-nat.c +++ b/gdb/lynx-nat.c @@ -608,7 +608,7 @@ child_wait (pid, ourstatus) pid = wait (&status); #ifdef SPARC /* Swap halves of status so that the rest of GDB can understand it */ - status = (status << 16) | ((unsigned)status >> 16); + status.w_status = ((unsigned)status.w_status << 16) | ((unsigned)status.w_status >> 16); #endif save_errno = errno; -- cgit v1.1