summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string.c b/string.c
index e687fcc53..119852044 100644
--- a/string.c
+++ b/string.c
@@ -912,6 +912,7 @@ rb_str_rindex(str, sub, pos)
}
s--;
}
+ return -1;
}
else {
return pos;