Skip to content

Commit

Permalink
fix end index 0 that return this.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchan0321 committed Dec 6, 2018
1 parent a40a5b3 commit 45da85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cell.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ cell_sub(Cell *c, int start, int end) {

if (end < 0) return d;
if (start < 0) start = 0;
if (end == 0) end = l;
/* if (end == 0) end = l; */
if (end <= start) return d;
if (start >= l) return d;

Expand Down

0 comments on commit 45da85c

Please sign in to comment.