Skip to content

Commit

Permalink
Assert change was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Sep 5, 2024
1 parent 5bd8330 commit 888acba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tkTextIndex.c
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@ TkTextIndexCountBytes(
int byteCount;
TkTextLine *linePtr;

assert(TkTextIndexCompare(indexPtr1, indexPtr2) < 0);
assert(TkTextIndexCompare(indexPtr1, indexPtr2) <= 0);

if (indexPtr1->priv.linePtr == indexPtr2->priv.linePtr) {
return TkTextIndexGetByteIndex(indexPtr2) - TkTextIndexGetByteIndex(indexPtr1);
Expand Down

0 comments on commit 888acba

Please sign in to comment.