From: sheepman Date: 2007-09-05T21:06:29+09:00 Subject: [ruby-dev:31738] integer overflow in Array#fill こんばんは sheepman です。 Array#fill でも integer overflow が起きます。 $ cat integer_overflow.rb a = [0, 1, 2, 3] a.fill(10, 1, 2**31-1) p a a = [0, 1, 2, 3] a.fill(10, 1, 5) p a $ ruby-1.8 -v integer_overflow.rb ruby 1.8.6 (2007-09-01 patchlevel 5000) [i686-linux] [0, 1, 2, 3] [0, 10, 10, 10, 10, 10] -- sheepman / TAMURA Takashi sheepman@sheepman.sakura.ne.jp