Nicolas Cannasse %!s(int64=18) %!d(string=hai) anos
pai
achega
2f79b88080
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genswf8.ml

+ 1 - 1
genswf8.ml

@@ -1425,7 +1425,7 @@ let generate_code file ver types hres =
 	let segs = List.rev ((ctx.opcodes,ctx.idents) :: ctx.segs) in
 	let segs = List.rev ((ctx.opcodes,ctx.idents) :: ctx.segs) in
 	let tags = List.map build_tag segs in
 	let tags = List.map build_tag segs in
 	if Plugin.defined "swf-mark" then begin
 	if Plugin.defined "swf-mark" then begin
-		if List.length segs > 0 then assert false;
+		if List.length segs > 1 then assert false;
 		let pidents = snd (List.hd tags) in
 		let pidents = snd (List.hd tags) in
 		let ch = IO.output_channel (open_out_bin (Filename.chop_extension file ^ ".mark")) in
 		let ch = IO.output_channel (open_out_bin (Filename.chop_extension file ^ ".mark")) in
 		IO.write_i32 ch (List.length ctx.fun_pargs);
 		IO.write_i32 ch (List.length ctx.fun_pargs);