diff options
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r-- | Modules/stropmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index c980272..0fd09b0 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -256,7 +256,7 @@ strop_rindex(self, args) } if (n == 0) - return newintobject((long)i); + return newintobject((long)len); for (j = len-n; j >= i; --j) if (s[j] == sub[0] && |