mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-09 21:20:17 +00:00
minor fix, std::min
This commit is contained in:
parent
85c35db694
commit
454172492b
@ -473,7 +473,7 @@ namespace pkpy
|
||||
endPos = this->dequeItems.size();
|
||||
if (!(startPos <= endPos))
|
||||
return -1; // invalid range
|
||||
int loopSize = min(this->dequeItems.size(), endPos);
|
||||
int loopSize = std::min((int)this->dequeItems.size(), endPos);
|
||||
for (int i = startPos; i < loopSize; i++)
|
||||
if (vm->py_equals(this->dequeItems[i], obj))
|
||||
return i;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user