Skip to content

Commit feb688f

Browse files
Cameron-Lowstrub
authored andcommitted
Reconstruct match correctly in zip
1 parent ee9221d commit feb688f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)