浏览代码

[cs] Generate fields in the correct order

Cauê Waneck 10 年之前
父节点
当前提交
27f465ad7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gencs.ml

+ 1 - 1
gencs.ml

@@ -2431,7 +2431,7 @@ let configure gen =
 			let evts = List.map (fun(_,v) -> !v) events in
 			let ret = List.map (fun (_,v) -> !v) !props in
 			let ret = List.filter (function | (_,_,None,None) -> false | _ -> true) ret in
-			evts, ret, !nonprops
+			evts, ret, List.rev !nonprops
 		in
 
 		let fevents, fprops, fnonprops = partition cl cl.cl_ordered_fields in