made SML/NJ happy;
authorwenzelm
Tue, 12 Jul 2011 20:11:00 +0200
changeset 43783 ef45eaf2775f
parent 43782 834de29572d5
child 43784 c3b6374278fa
made SML/NJ happy;
src/Pure/General/xml.ML
--- a/src/Pure/General/xml.ML	Tue Jul 12 19:49:35 2011 +0200
+++ b/src/Pure/General/xml.ML	Tue Jul 12 20:11:00 2011 +0200
@@ -304,8 +304,8 @@
 fun node (Elem ((":", []), ts)) = ts
   | node t = raise XML_BODY [t];
 
-val vector =
-  fold_map (fn (a, x) => fn i => if int_atom a = i then (x, i + 1) else raise XML_ATOM a);
+fun vector atts =
+  fold_map (fn (a, x) => fn i => if int_atom a = i then (x, i + 1) else raise XML_ATOM a) atts;
 
 fun tagged (Elem ((name, atts), ts)) = (int_atom name, (#1 (vector atts 0), ts))
   | tagged t = raise XML_BODY [t];