Skip to content

Commit a377f9a

Browse files
committed
Reconstruct match correctly in zip
1 parent 3866ec1 commit a377f9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ecMatching.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ module Zipper = struct
293293
| ZIfThen (e, sp, se) -> zip (Some (i_if (e, s, se))) sp
294294
| ZIfElse (e, se, sp) -> zip (Some (i_if (e, se, s))) sp
295295
| ZMatch (e, sp, mpi) ->
296-
zip (Some (i_match (e, mpi.prebr @ (mpi.locals, s) :: mpi.postbr))) sp
296+
zip (Some (i_match (e, List.rev_append mpi.prebr ((mpi.locals, s) :: mpi.postbr)))) sp
297297

298298
let zip zpr = zip None ((zpr.z_head, zpr.z_tail), zpr.z_path)
299299

0 commit comments

Comments
 (0)