]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/59545 (Signed integer overflow issues)
authorJakub Jelinek <jakub@redhat.com>
Wed, 26 Mar 2014 19:32:40 +0000 (20:32 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 26 Mar 2014 19:32:40 +0000 (20:32 +0100)
PR other/59545
* real.c (real_to_integer2): Change type of low to UHWI.

From-SVN: r208848

gcc/ChangeLog
gcc/real.c

index 9b124fbe982d569e328f55f311e54dfd798364e0..aeb9c6f7821b53d03ba440625ac53267b47ac2eb 100644 (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.
index 86f88cec4b9cac2f753c17b9e45c49a6e58d2a5c..5cf2525b90a4cf763fc19e13f0270eb7989035b2 100644 (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)