From 4c4f9fa70f14b28d50185dbf322cf5727087e86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Mon, 24 Jun 2024 16:49:09 +0200 Subject: [PATCH] fix: multiple cut sites were not detected properly (bug) --- src/cut.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cut.cc b/src/cut.cc index 8f1ef8a5..22c6db68 100644 --- a/src/cut.cc +++ b/src/cut.cc @@ -334,7 +334,7 @@ auto cut() -> void unsigned char const x = pattern[i]; if (x == '^') { - if (j < 0) + if (cut_fwd != -1) { fatal("Multiple cut sites not supported"); @@ -343,7 +343,7 @@ auto cut() -> void } else if (x == '_') { - if (j < 0) + if (cut_rev != -1) { fatal("Multiple cut sites not supported");