diff options
Diffstat (limited to 'gas/flonum-copy.c')
-rw-r--r-- | gas/flonum-copy.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gas/flonum-copy.c b/gas/flonum-copy.c index b755495..5c37ad3 100644 --- a/gas/flonum-copy.c +++ b/gas/flonum-copy.c @@ -46,12 +46,11 @@ flonum_copy (FLONUM_TYPE *in, FLONUM_TYPE *out) and wasting time, so why bother??? */ if (in_length < out_length) { - memset ((char *) (out->low + in_length + 1), '\0', - out_length - in_length); + memset (out->low + in_length + 1, 0, out_length - in_length); } } - memcpy ((void *) (out->low), (void *) (in->low), - ((in_length + 1) * sizeof (LITTLENUM_TYPE))); + memcpy (out->low, in->low, + (in_length + 1) * sizeof (LITTLENUM_TYPE)); out->exponent = in->exponent; out->leader = in->leader - in->low + out->low; } @@ -61,8 +60,8 @@ flonum_copy (FLONUM_TYPE *in, FLONUM_TYPE *out) shorten = in_length - out_length; /* Assume out_length >= 0 ! */ - memcpy ((void *) (out->low), (void *) (in->low + shorten), - ((out_length + 1) * sizeof (LITTLENUM_TYPE))); + memcpy (out->low, in->low + shorten, + (out_length + 1) * sizeof (LITTLENUM_TYPE)); out->leader = out->high; out->exponent = in->exponent + shorten; } |