re PR other/59545 (Signed integer overflow issues)

PR other/59545
	* real.c (real_to_integer2): Change type of low to UHWI.

From-SVN: r208848
This commit is contained in:
Jakub Jelinek 2014-03-26 20:32:40 +01:00 committed by Jakub Jelinek
parent b9487dd868
commit ed0ca1e1ea
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-03-26 Jakub Jelinek <jakub@redhat.com>
PR other/59545
* real.c (real_to_integer2): Change type of low to UHWI.
2014-03-26 Tobias Burnus <burnus@net-b.de>
* gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.

View File

@ -1377,7 +1377,8 @@ real_to_integer2 (HOST_WIDE_INT *plow, HOST_WIDE_INT *phigh,
const REAL_VALUE_TYPE *r)
{
REAL_VALUE_TYPE t;
HOST_WIDE_INT low, high;
unsigned HOST_WIDE_INT low;
HOST_WIDE_INT high;
int exp;
switch (r->cl)