Browse Source

[cs] Generate fields in the correct order

Cauê Waneck 10 năm trước cách đây
mục cha
commit
27f465ad7a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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