aboutsummaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-24 21:32:08 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-24 21:32:08 +0000
commit1f33a3756376c728e99caa8dbeffd7a3d675deaa (patch)
tree698adbe5d5047577164e17e5f52bd8f6853eb31b /libiberty/floatformat.c
parentd7e2b26d364306474545c822db9370d9005e5082 (diff)
merge from bfdland
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r--libiberty/floatformat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index c4f21e4ce89..1d8f16df353 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -1,5 +1,5 @@
/* IEEE floating point support routines, for GDB, the GNU Debugger.
- Copyright (C) 1991, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1994, 1999 Free Software Foundation, Inc.
This file is part of GDB.
@@ -128,7 +128,7 @@ get_field (data, order, total_len, start, len)
--cur_byte;
/* Move towards the most significant part of the field. */
- while (cur_bitshift < len)
+ while ((unsigned int) cur_bitshift < len)
{
if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
/* This is the last byte; zero out the bits which are not part of
@@ -179,7 +179,7 @@ floatformat_to_double (fmt, from, to)
mant_off = fmt->man_start;
dto = 0.0;
- special_exponent = exponent == 0 || exponent == fmt->exp_nan;
+ special_exponent = exponent == 0 || (unsigned long) exponent == fmt->exp_nan;
/* Don't bias zero's, denorms or NaNs. */
if (!special_exponent)
@@ -255,7 +255,7 @@ put_field (data, order, total_len, start, len, stuff_to_put)
--cur_byte;
/* Move towards the most significant part of the field. */
- while (cur_bitshift < len)
+ while ((unsigned int) cur_bitshift < len)
{
if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
{
@@ -335,7 +335,7 @@ floatformat_from_double (fmt, from, to)
If we are discarding a zero, we should be (but are not) creating
a denormalized number which means adjusting the exponent
(I think). */
- if (mant_bits_left == fmt->man_len
+ if ((unsigned int) mant_bits_left == fmt->man_len
&& fmt->intbit == floatformat_intbit_no)
{
mant_long &= 0x7fffffff;