diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/generic/dl-sysdep.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 5cb07c3af1..9675e057d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-01-02 Andreas Jaeger <aj@suse.de> + + * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make + constant unsigned. + 2001-01-01 Andreas Jaeger <aj@suse.de> * inet/rcmd.c (rcmd_af): Use socklen_t for len. diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index bd4036c7f6..2b01878cfe 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -1,5 +1,5 @@ /* Operating system support for run-time dynamic linker. Generic Unix version. - Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1995,1996,1997,1998,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -417,7 +417,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz, #undef add /* Now we are ready to install the string pointers and length. */ - for (n = 0; n < (1 << cnt); ++n) + for (n = 0; n < (1UL << cnt); ++n) result[n].len = 0; n = cnt; do @@ -434,7 +434,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz, /* The first half of the strings all include the first string. */ n = (1 << cnt) - 2; rp = &result[2]; - while (n != (1 << (cnt - 1))) + while (n != (1UL << (cnt - 1))) { if ((n & 1) != 0) rp[0].str = rp[-2].str + rp[-2].len; |