diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-27 08:04:32 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-27 08:04:32 +0000 |
commit | e5c5576aeb40eb593d02cb00174ae5a8256f19f6 (patch) | |
tree | da88b4389e0df8385407695139d7a4d228381cec /string.c | |
parent | 780e1aa291d41e065f799e35e02543206f912b4f (diff) |
* string.c (str_new): need no MEMZERO().
* numeric.c (fix_gt): use rb_num_coerce_cmp() instead of
rb_num_coerce_bin.
* numeric.c (fix_ge, fix_lt, fix_le): ditto.
* numeric.c (flo_gt, flo_ge, flo_lt, flo_le): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -70,9 +70,6 @@ str_new(klass, ptr, len) if (ptr) { memcpy(RSTRING(str)->ptr, ptr, len); } - else { - MEMZERO(RSTRING(str)->ptr, char, len); - } RSTRING(str)->ptr[len] = '\0'; return str; } |