diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-08 06:25:19 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-08 06:25:19 +0000 |
commit | 33f7442e0f1056548f3b972ee1c2d32556939d57 (patch) | |
tree | 00e88e85081d6430c17c86ba50bd343793795153 /string.c | |
parent | 58e68a3660c47739d7a70cc6f5cdebec030502d2 (diff) |
2000-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -262,6 +262,7 @@ rb_str_times(str, times) long i, len; len = NUM2LONG(times); + if (len == 0) return rb_str_new(0,0); if (len < 0) { rb_raise(rb_eArgError, "negative argument"); } |