summaryrefslogtreecommitdiff
path: root/gcc/ada/uintp.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-30 15:53:08 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-30 15:53:08 +0000
commit88610da214a059632c010d8fb1532c712e6e0f62 (patch)
tree6cb972565a86b303ee1d8bf5416dbb28aa94bd7b /gcc/ada/uintp.adb
parentbd507c5d80e60a9c2611030103deca12ea816d68 (diff)
downloadgcc-88610da214a059632c010d8fb1532c712e6e0f62.tar.gz
2008-07-30 Robert Dewar <dewar@adacore.com>
* uintp.adb (UI_GCD): Fix potential overflow git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138323 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/uintp.adb')
-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 416d5d88681..b1f05993608 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