aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2008-07-30 17:53:08 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-07-30 17:53:08 +0200
commitdc829590914f5ae29de5f246319f5c37127c8ccd (patch)
tree6cb972565a86b303ee1d8bf5416dbb28aa94bd7b
parent6a4d72a6d9aec655e70fdbdf548c9ed00c0350db (diff)
downloadgcc-dc829590914f5ae29de5f246319f5c37127c8ccd.zip
gcc-dc829590914f5ae29de5f246319f5c37127c8ccd.tar.gz
gcc-dc829590914f5ae29de5f246319f5c37127c8ccd.tar.bz2
uintp.adb (UI_GCD): Fix potential overflow
2008-07-30 Robert Dewar <dewar@adacore.com> * uintp.adb (UI_GCD): Fix potential overflow From-SVN: r138323
-rw-r--r--gcc/ada/uintp.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/uintp.adb b/gcc/ada/uintp.adb
index 416d5d8..b1f0599 100644
--- a/gcc/ada/uintp.adb
+++ b/gcc/ada/uintp.adb
@@ -1832,7 +1832,7 @@ package body Uintp is
Den1 := V_Hat + C;
Den2 := V_Hat + D;
- exit when (Den1 * Den2) = Int_0;
+ exit when Den1 = Int_0 or else Den2 = Int_0;
-- Compute Q, the trial quotient