minor fix, rotate, n=0 case

This commit is contained in:
S. Mahmudul Hasan 2023-10-16 00:48:20 -04:00
parent 454172492b
commit 7590cdf51a

View File

@ -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;
});