aboutsummaryrefslogtreecommitdiff
path: root/gas/bignum-copy.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-09-11 00:15:39 +0000
committerIan Lance Taylor <ian@airs.com>1993-09-11 00:15:39 +0000
commita938b1d6ba978dd1be27a6761a273be19acaf685 (patch)
treec9264ba86b79feebd264ccbdd705db7de16095c3 /gas/bignum-copy.c
parentd6a99838742b10f879e31557c4c7effe21b2d47e (diff)
downloadgdb-a938b1d6ba978dd1be27a6761a273be19acaf685.zip
gdb-a938b1d6ba978dd1be27a6761a273be19acaf685.tar.gz
gdb-a938b1d6ba978dd1be27a6761a273be19acaf685.tar.bz2
More gcc lint with harsher warning options.
Diffstat (limited to 'gas/bignum-copy.c')
-rw-r--r--gas/bignum-copy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/bignum-copy.c b/gas/bignum-copy.c
index af221aa..cb9f74a 100644
--- a/gas/bignum-copy.c
+++ b/gas/bignum-copy.c
@@ -46,7 +46,7 @@ bignum_copy (in, in_length, out, out_length)
littlenum. */
memcpy ((void *) out, (void *) in,
- out_length << LITTLENUM_SHIFT);
+ (unsigned int) out_length << LITTLENUM_SHIFT);
for (p = in + in_length - 1; p >= in; --p)
{
if (*p)
@@ -62,12 +62,13 @@ bignum_copy (in, in_length, out, out_length)
else
{
memcpy ((char *) out, (char *) in,
- in_length << LITTLENUM_SHIFT);
+ (unsigned int) in_length << LITTLENUM_SHIFT);
if (out_length > in_length)
{
memset ((char *) (out + in_length),
- '\0', (out_length - in_length) << LITTLENUM_SHIFT);
+ '\0',
+ (unsigned int) (out_length - in_length) << LITTLENUM_SHIFT);
}
significant_littlenums_dropped = 0;