소스 검색

fixed bug in resources generation.

Nicolas Cannasse 18 년 전
부모
커밋
05b0b63071
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      genswf8.ml

+ 2 - 2
genswf8.ml

@@ -452,11 +452,11 @@ let gen_try ctx =
 let rec gen_big_string ctx s =
 	let len = String.length s in
 	let max = 65000 in
+	ctx.opt_push <- false;
 	if len <= max then
 		write ctx (APush [PString s])
 	else begin
-		write ctx (APush [PString (String.sub s 0 max)]);
-		ctx.opt_push <- false;
+		write ctx (APush [PString (String.sub s 0 max)]);		
 		gen_big_string ctx (String.sub s max (len - max));
 		write ctx AAdd;
 	end