diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-16 03:27:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-16 03:27:23 +0000 |
commit | 5f877e84316496556b05287e298f3d3924fc4f00 (patch) | |
tree | 8b0c88d8205e604a152b6a50da54843f4e0ed9f4 /object.c | |
parent | 9be798477425579cd73e5d0884435fce1f38502b (diff) | |
download | ruby-5f877e84316496556b05287e298f3d3924fc4f00.tar.gz |
* string.c (rb_str_index): wrong increment for non alphanumeric
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -595,7 +595,9 @@ rb_mod_initialize(argc, argv, module) VALUE *argv; VALUE module; { - rb_mod_module_eval(0, 0, module); + if (rb_block_given_p()) { + rb_mod_module_eval(0, 0, module); + } return Qnil; } |