[#9445] thread.rb — m_seki@...

18 messages 2000/03/16
[#9446] Re: thread.rb — matz@... (Yukihiro Matsumoto) 2000/03/17

[#9460] Re: thread.rb — m_seki@... 2000/03/21

[#9462] Re: thread.rb — matz@... (Yukihiro Matsumoto) 2000/03/21

まつもと ゆきひろです

[#11281] Re: thread.rb — Masatoshi SEKI <m_seki@...> 2000/10/22

[#9498] timeout しない timeout — ARIMA Yasuhiro <fit0298@...>

有馬です。

20 messages 2000/03/26
[#9506] Re: timeout しない timeout — matz@... (Yukihiro Matsumoto) 2000/03/27

まつもと ゆきひろです

[#9509] Re: timeout しない timeout — gotoken@... (GOTO Kentaro) 2000/03/27

In message "[ruby-dev:9506] Re: timeout しない timeout"

[ruby-dev:9347] Re: [fix] String#* with huge string

From: Katsuyuki Komatsu <komatsu@...>
Date: 2000-03-02 10:26:59 UTC
List: ruby-dev #9347
小松です。

In the message of [ruby-dev:9344] Re: [fix] String#* with huge string
    on 2000/3/2 14:41:32 Katsuyuki Komatsu <komatsu@sarion.co.jp> wrote:
>make testが失敗するので何かと思ったら、len == 0のチェックが
>必要なようです。

Ruby 1.5.2では最初にチェックしているので、1.4.4でもそれに
合わせるべきでしたか。
[ruby-dev:9344]は捨てて、以下の方がよさそうです。

diff -ru2p ruby-1.4.4.dist/string.c ruby-1.4.4/string.c
--- ruby-1.4.4.dist/string.c	Thu Mar  2 12:51:45 2000
+++ ruby-1.4.4/string.c	Thu Mar  2 19:18:36 2000
@@ -263,4 +263,5 @@ rb_str_times(str, times)
 
     len = NUM2LONG(times);
+    if (len == 0) return rb_str_new(0,0);
     if (len < 0) {
 	rb_raise(rb_eArgError, "negative argument");

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread