From: Ulrich Drepper Date: Fri, 17 Oct 2008 08:38:08 +0000 (+0000) Subject: * stdlib/divmod_1.c: Use correct type for dummy variable. X-Git-Tag: upstream/2.30~14003 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=292eb8177ece7670194f16e0e776eb3a1cd252ae;p=external%2Fglibc.git * stdlib/divmod_1.c: Use correct type for dummy variable. * stdlib/mod_1.c: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 3a62313..993290d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-17 Ulrich Drepper + + * stdlib/divmod_1.c: Use correct type for dummy variable. + * stdlib/mod_1.c: Likewise. + 2008-10-16 Ulrich Drepper * 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)