From f5b9e5df2d16a565ee1f34088e18a6a348af126d Mon Sep 17 00:00:00 2001 From: vbot Date: Tue, 30 Jul 2024 17:58:01 +0200 Subject: [PATCH] fix position invalid test --- compiler/catala_utils/pos.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/catala_utils/pos.ml b/compiler/catala_utils/pos.ml index 552ee2f5..c9b90a8a 100644 --- a/compiler/catala_utils/pos.ml +++ b/compiler/catala_utils/pos.ml @@ -135,7 +135,7 @@ let format_loc_text_parts (pos : t) = let ic, input_line_opt = let from_contents = match Global.options.input_src with - | Contents (str, _) when str = filename -> Some str + | Contents (str, uri) when uri = filename -> Some str | _ -> None in match from_contents with