diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-07 06:36:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-07 06:36:53 +0000 |
commit | a4d9a91b96d1c3604af8cb14d4c665112454a3e8 (patch) | |
tree | d6a01a91f9cea219701a8f29831ff2ddefc1b2c0 /string.c | |
parent | 34033db665f806bf37f142171c391c739a9f5409 (diff) | |
download | ruby-a4d9a91b96d1c3604af8cb14d4c665112454a3e8.tar.gz |
re-indented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -848,7 +848,7 @@ rb_str_index(str, sub, offset) if (RSTRING(str)->len - offset < RSTRING(sub)->len) return -1; if (RSTRING(sub)->len == 0) return offset; pos = rb_memsearch(RSTRING(sub)->ptr, RSTRING(sub)->len, - RSTRING(str)->ptr+offset, RSTRING(str)->len-offset); + RSTRING(str)->ptr+offset, RSTRING(str)->len-offset); if (pos < 0) return pos; return pos + offset; } |