Commit dc829590 by Robert Dewar Committed by Arnaud Charlet

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
parent 6a4d72a6
...@@ -1832,7 +1832,7 @@ package body Uintp is ...@@ -1832,7 +1832,7 @@ package body Uintp is
Den1 := V_Hat + C; Den1 := V_Hat + C;
Den2 := V_Hat + D; 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 -- Compute Q, the trial quotient
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment