summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-17 17:21:34 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-17 17:21:34 +0000
commit0ff8da43cab240367a911698c46e81c8e6b202f3 (patch)
tree12dc3c15ab7a8eba75a58a230c6a0ad128650d59 /libiberty
parentabb12491d77950e3b9319e1f4cf28c5f480257dc (diff)
downloadgcc-0ff8da43cab240367a911698c46e81c8e6b202f3.tar.gz
* floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
to convert from "from". (floatformat_to_double): Likewise. (floatformat_from_double): Use explicit cast to convert from "to". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108717 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog7
-rw-r--r--libiberty/floatformat.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 85e96bad04b..4d5caf37981 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
+ to convert from "from".
+ (floatformat_to_double): Likewise.
+ (floatformat_from_double): Use explicit cast to convert from "to".
+
2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
PR java/9861
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 28c9fbf662d..c97b6c57f0a 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);