Skip to content

Commit

Permalink
Merge pull request #7 from lunixoid/master
Browse files Browse the repository at this point in the history
Fixed conditions
  • Loading branch information
Jackarain authored Oct 31, 2017
2 parents 010a614 + 9bda154 commit 670ebd4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/v7.c
Original file line number Diff line number Diff line change
Expand Up @@ -31289,7 +31289,6 @@ static enum v7_err s_substr(struct v7 *v7, val_t s, long start, long len,
if (start < 0) start = 0;

if (start > (long) n) start = n;
if (len < 0) len = 0;
if (len > (long) n - start) len = n - start;
p = utfnshift(p, start);
} else {
Expand Down Expand Up @@ -32177,9 +32176,6 @@ V7_PRIVATE enum v7_err Date_ctor(struct v7 *v7, v7_val_t *res) {
goto clean;
}
ret_time = v7_get_double(v7, arg);
if (rcode != V7_OK) {
goto clean;
}
}
} else {
/* 2+ paramaters - should be parts of a date */
Expand Down

0 comments on commit 670ebd4

Please sign in to comment.