diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-10-17 08:38:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-10-17 08:38:08 +0000 |
commit | 292eb8177ece7670194f16e0e776eb3a1cd252ae (patch) | |
tree | 1134cf675ec1b4a0a73025e172b27732e200a83f | |
parent | 5df2a427bec4c837fa7da13ad07a3b97861da3ef (diff) | |
download | glibc-292eb8177ece7670194f16e0e776eb3a1cd252ae.zip glibc-292eb8177ece7670194f16e0e776eb3a1cd252ae.tar.gz glibc-292eb8177ece7670194f16e0e776eb3a1cd252ae.tar.bz2 |
* stdlib/divmod_1.c: Use correct type for dummy variable.
* stdlib/mod_1.c: Likewise.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | elf/dl-tls.c | 2 | ||||
-rw-r--r-- | stdlib/divmod_1.c | 2 | ||||
-rw-r--r-- | stdlib/mod_1.c | 2 |
4 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2008-10-17 Ulrich Drepper <drepper@redhat.com> + + * stdlib/divmod_1.c: Use correct type for dummy variable. + * stdlib/mod_1.c: Likewise. + 2008-10-16 Ulrich Drepper <drepper@redhat.com> * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV. diff --git a/elf/dl-tls.c b/elf/dl-tls.c index edbc953..e234a0a 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -634,7 +634,7 @@ _dl_update_slotinfo (unsigned long int req_modid) newp = malloc ((2 + newsize) * sizeof (dtv_t)); if (newp == NULL) oom (); - memcpy (newp, &dtv[-1], (2 * oldsize) * sizeof (dtv_t)); + memcpy (newp, &dtv[-1], (2 + oldsize) * sizeof (dtv_t)); } else { diff --git a/stdlib/divmod_1.c b/stdlib/divmod_1.c index 51a47d8..0a8a77e 100644 --- a/stdlib/divmod_1.c +++ b/stdlib/divmod_1.c @@ -55,7 +55,7 @@ mpn_divmod_1 (quot_ptr, dividend_ptr, dividend_size, divisor_limb) { mp_size_t i; mp_limb_t n1, n0, r; - int dummy; + mp_limb_t dummy; /* ??? Should this be handled at all? Rely on callers? */ if (dividend_size == 0) diff --git a/stdlib/mod_1.c b/stdlib/mod_1.c index 3273c92..f4cfa69 100644 --- a/stdlib/mod_1.c +++ b/stdlib/mod_1.c @@ -50,7 +50,7 @@ mpn_mod_1 (dividend_ptr, dividend_size, divisor_limb) { mp_size_t i; mp_limb_t n1, n0, r; - int dummy; + mp_limb_t dummy; /* Botch: Should this be handled at all? Rely on callers? */ if (dividend_size == 0) |