Skip to content

Commit

Permalink
Fix issue #64
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 55bccdeeaece3664702082db63a25cac260ed809ceac21416f5d681a943905d7
  • Loading branch information
pmacdona committed Dec 26, 2021
1 parent 803e487 commit bb82cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jsiArray.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static Jsi_RC jsi_ArrayFillCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_
if (end && Jsi_GetNumberFromValue(interp,end, &nend) == JSI_OK) {
iend = (int) nend;
if (iend >= n)
iend = n;
iend = n-1;
if (iend < 0)
iend = (n+iend);
if (iend<0)
Expand Down Expand Up @@ -892,7 +892,7 @@ static Jsi_RC jsi_ArraySliceCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *
if (end && Jsi_GetNumberFromValue(interp,end, &nend) == JSI_OK) {
iend = (int) nend;
if (iend >= n)
iend = n;
iend = n-1;
if (iend < 0)
iend = (n+iend);
if (iend<0)
Expand Down

1 comment on commit bb82cc3

@pcmacdon
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #64

Please sign in to comment.