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,7 +302,7 @@ namespace pkpy
{ {
PyDeque &self = _CAST(PyDeque &, args[0]); PyDeque &self = _CAST(PyDeque &, args[0]);
int n = CAST(int, args[1]); int n = CAST(int, args[1]);
if (n!=0) // handle trivial case
self.rotate(n); self.rotate(n);
return vm->None; return vm->None;
}); });