You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to have a wrong branch condition.First, it needs to be judged at the top layer that otherTo is not equal to otherFrom:
if (otherFrom !== otherTo) {
// if otherFrom == otherTo, we don't need to change our op.
and then judge that to must be equal to otherTo, and to must be equal to otherFrom,
...
} else if (to === otherTo) {
// if we're both moving in the same direction, tie break
if ((otherTo > otherFrom && to > from) ||
(otherTo < otherFrom && to < from)) {
if (type === 'right') c.lm++;
} else {
if (to > from) c.lm++;
else if (to === otherFrom) c.lm--;
}
}
...
The text was updated successfully, but these errors were encountered:
json0/lib/json0.js
Line 595 in 90a3ae2
seems to have a wrong branch condition.First, it needs to be judged at the top layer that otherTo is not equal to otherFrom:
and then judge that
to
must be equal to otherTo, andto
must be equal to otherFrom,The text was updated successfully, but these errors were encountered: