about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-25 11:45:26 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-25 11:45:26 +0000
commit6dbb7062ff2af970c6b8befecf71d7284d5813fb (patch)
tree491c0061190c228120bb48e2b3975572b4ba33e2 /stdlib
parented1ac6a2d6c744bdbd4751efc86326ceafeac26c (diff)
downloadglibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.tar.gz
glibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.tar.xz
glibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.zip
Update.
1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>

	* elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.

1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>

	* argp/argp.h: Use __inline__ not inline.

	* sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
	an input register as being clobbered.
	* sysdeps/i386/memset.c (memset): Likewise.
	* sysdeps/i386/bzero.c (__bzero): Likewise.
	* sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.

1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
	Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/jrand48_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/jrand48_r.c b/stdlib/jrand48_r.c
index ce4c8b0a95..95f3ec62b2 100644
--- a/stdlib/jrand48_r.c
+++ b/stdlib/jrand48_r.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
@@ -31,7 +31,7 @@ __jrand48_r (xsubi, buffer, result)
 
   /* Store the result.  */
   if (sizeof (unsigned short int) == 2)
-    *result = (xsubi[2] & 0x7fff) | xsubi[1];
+    *result = ((xsubi[2] & 0x7fff) << 16) | xsubi[1];
   else
     *result = xsubi[2] & 0x7fffffffl;