author | paulson |
Fri, 26 Jan 2007 10:22:42 +0100 | |
changeset 22189 | 10278e568741 |
parent 22188 | a63889770d57 |
child 22190 | d31dec6397be |
--- a/src/Pure/General/rat.ML Fri Jan 26 09:24:35 2007 +0100 +++ b/src/Pure/General/rat.ML Fri Jan 26 10:22:42 2007 +0100 @@ -87,7 +87,7 @@ | lt (Rat (true, _, _), Rat (false, _, _)) = false | lt (Rat (a, p1, q1), Rat (_, p2, q2)) = let val (r1, r2, _) = common (p1, q1, p2, q2) - in if a then r1 <= r2 else r2 <= r1 end; + in if a then r1 < r2 else r2 < r1 end; fun ord (Rat (false, _, _), Rat (true, _, _)) = LESS | ord (Rat (true, _, _), Rat (false, _, _)) = GREATER