OSDN Git Service

fix: compile failed
authormzp <mzpppp@gmail.com>
Sun, 13 Sep 2009 23:54:11 +0000 (08:54 +0900)
committermzp <mzpppp@gmail.com>
Sun, 13 Sep 2009 23:54:11 +0000 (08:54 +0900)
swflib/gen_typemap.ml

index 427c9c5..4ecd78e 100644 (file)
@@ -32,7 +32,7 @@ let cpool name ~high ~entry =
   regist name ~low:"int" ~high
     ~funs:[
       "byte"  => "u30";
-      "const" => sprintf "fun x -> Some (%s x)" entry;
+      "const" => sprintf "fun x -> Some ((%s x) :> Cpool.entry)" entry;
       "arg"   => sprintf "fun ctx x -> Cpool.index ctx#cpool (%s x)" entry;
       "class" => none;
       "method"=> none;