needforspeed: stringlib refactoring: use stringlib/find for string find
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2732c2c..20f943f 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -3967,16 +3967,15 @@
if (direction > 0)
result = stringlib_find(
- str_obj->str + start, end - start, sub_obj->str, sub_obj->length
+ str_obj->str + start, end - start, sub_obj->str, sub_obj->length,
+ start
);
else
result = stringlib_rfind(
- str_obj->str + start, end - start, sub_obj->str, sub_obj->length
+ str_obj->str + start, end - start, sub_obj->str, sub_obj->length,
+ start
);
- if (result >= 0)
- result += start;
-
Py_DECREF(str_obj);
Py_DECREF(sub_obj);
return result;