Project

General

Profile

Actions

Bug #2094

closed

prime.rb has warning.

Added by d3z (David Brown) almost 16 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-07-18 trunk 24186) [x86_64-linux]
Backport:
[ruby-core:25539]

Description

=begin
The following program:

$VERBOSE = true
require 'prime'
42.prime?

prints a warning:
/var/tmp/ruby-1.9.2-preview1/lib/ruby/1.9.1/prime.rb:261: warning: instance variable @ubound not initialized

I've tried with 1.9.1 released and with this preview release. The
warning is printed repeatedly for each primality check.
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24884.
=end

Actions

Also available in: Atom PDF

Like0
Like0