mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 05:30:16 +00:00
minor fix, rotate, n=0 case
This commit is contained in:
parent
454172492b
commit
7590cdf51a
@ -302,8 +302,8 @@ namespace pkpy
|
||||
{
|
||||
PyDeque &self = _CAST(PyDeque &, args[0]);
|
||||
int n = CAST(int, args[1]);
|
||||
|
||||
self.rotate(n);
|
||||
if (n!=0) // handle trivial case
|
||||
self.rotate(n);
|
||||
return vm->None;
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user