We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b03bcc commit ed9fa49Copy full SHA for ed9fa49
1 file changed
src/ecMatching.ml
@@ -311,7 +311,7 @@ module Position = struct
311
312
(* Throws InvalidCPos if failing — allows [0, n] where n is "after last" *)
313
let check_nm_cpos1 (nm: nm_codepos1) (s: stmt) : unit =
314
- if nm < 0 || nm > List.length s.s_node then raise InvalidCPos
+ if nm < 0 || nm >= List.length s.s_node then raise InvalidCPos
315
316
(* Normalizes code position wrt stmt — input is 0-indexed *)
317
let normalize_cp_base ?(check = true) (env: EcEnv.env) (cb: cp_base) (s: stmt) : nm_codepos1 =
0 commit comments