Fix rigth->right

This commit is contained in:
luz paz 2021-07-08 08:05:04 -04:00 committed by manongjohn
parent d3ff7a2d29
commit 29363cf846

View file

@ -31,11 +31,11 @@ const int MY_ERROR = -1;
//-----------------------------------------------------------------------------
// index must be between 0 and controlPointCount-1
inline bool isIncluded(int index, int left, int rigth) {
if (left < rigth) {
return left <= index && index <= rigth;
inline bool isIncluded(int index, int left, int right) {
if (left < right) {
return left <= index && index <= right;
} else {
return left <= index || index <= rigth;
return left <= index || index <= right;
}
}