author | paulson |
Thu, 24 Oct 1996 10:42:42 +0200 | |
changeset 2126 | d927beecedf8 |
parent 2125 | 92a08ee6a9cb |
child 2127 | 33f3d40145e8 |
src/Pure/goals.ML | file | annotate | diff | comparison | revisions |
--- a/src/Pure/goals.ML Thu Oct 24 10:38:35 1996 +0200 +++ b/src/Pure/goals.ML Thu Oct 24 10:42:42 1996 +0200 @@ -279,7 +279,9 @@ (*For inspecting earlier levels of the backward proof*) fun chop_level n (pair,pairs) = let val level = length pairs - in if 0<=n andalso n<= level + in if n<0 andalso ~n <= level + then drop (~n, pair::pairs) + else if 0<=n andalso n<= level then drop (level - n, pair::pairs) else error ("Level number must lie between 0 and " ^ string_of_int level)