Skip to content

Commit 4c4f9fa

Browse files
committed
fix: multiple cut sites were not detected properly (bug)
1 parent 77b0760 commit 4c4f9fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cut.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ auto cut() -> void
334334
unsigned char const x = pattern[i];
335335
if (x == '^')
336336
{
337-
if (j < 0)
337+
if (cut_fwd != -1)
338338
{
339339
fatal("Multiple cut sites not supported");
340340

@@ -343,7 +343,7 @@ auto cut() -> void
343343
}
344344
else if (x == '_')
345345
{
346-
if (j < 0)
346+
if (cut_rev != -1)
347347
{
348348
fatal("Multiple cut sites not supported");
349349

0 commit comments

Comments
 (0)