diff options
author | DJ Delorie <dj@delorie.com> | 2005-12-17 20:51:56 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-12-17 20:51:56 +0000 |
commit | c336f7b2738f973d4d0b96feffb5b40f07875692 (patch) | |
tree | a35f36131e1a1bfa002c7e79a65a87f8c8d14c30 /libiberty/floatformat.c | |
parent | 4fa5c907f5407f964a4c73f25e35aaf51ad6e4ec (diff) | |
download | binutils-redhat-c336f7b2738f973d4d0b96feffb5b40f07875692.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r-- | libiberty/floatformat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index 28c9fbf662..c97b6c57f0 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -143,7 +143,7 @@ floatformat_i387_ext_is_valid (const struct floatformat *fmt, const void *from) nor ~0, the intbit must also be set. Only if the exponent is zero can it be zero, and then it must be zero. */ unsigned long exponent, int_bit; - const unsigned char *ufrom = from; + const unsigned char *ufrom = (const unsigned char *) from; exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->exp_start, fmt->exp_len); @@ -295,7 +295,7 @@ void floatformat_to_double (const struct floatformat *fmt, const void *from, double *to) { - const unsigned char *ufrom = from; + const unsigned char *ufrom = (const unsigned char *) from; double dto; long exponent; unsigned long mant; @@ -471,7 +471,7 @@ floatformat_from_double (const struct floatformat *fmt, double mant; unsigned int mant_bits, mant_off; int mant_bits_left; - unsigned char *uto = to; + unsigned char *uto = (unsigned char *) to; dfrom = *from; memset (uto, 0, fmt->totalsize / FLOATFORMAT_CHAR_BIT); |