src/HOL/Integ/nat_simprocs.ML
changeset 10890 0b4e916f51ed
parent 10704 c1643c077df4
child 11259 27f0f16f8003
--- a/src/HOL/Integ/nat_simprocs.ML	Fri Jan 12 18:00:40 2001 +0100
+++ b/src/HOL/Integ/nat_simprocs.ML	Fri Jan 12 20:03:04 2001 +0100
@@ -113,8 +113,8 @@
 fun dest_numeral (Const ("0", _)) = 0
   | dest_numeral (Const ("Suc", _) $ t) = 1 + dest_numeral t
   | dest_numeral (Const("Numeral.number_of", _) $ w) =
-      (BasisLibrary.Int.max (0, NumeralSyntax.dest_bin w)
-       handle Match => raise TERM("Nat_Numeral_Simprocs.dest_numeral:1", [w]))
+      (BasisLibrary.Int.max (0, HOLogic.dest_binum w)
+       handle TERM _ => raise TERM("Nat_Numeral_Simprocs.dest_numeral:1", [w]))
   | dest_numeral t = raise TERM("Nat_Numeral_Simprocs.dest_numeral:2", [t]);
 
 fun find_first_numeral past (t::terms) =