Browse Source

fixed OSwitch bytecode

Nicolas Cannasse 9 years ago
parent
commit
25baa7bf51
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/generators/genhl.ml

+ 1 - 0
src/generators/genhl.ml

@@ -5409,6 +5409,7 @@ let write_code ch code =
 			write_type t
 		| OSwitch (r,pl,eend) ->
 			byte oid;
+			write_index r;
 			write_index (Array.length pl);
 			Array.iter write_index pl;
 			write_index eend