ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:77502] [Ruby trunk Bug#12815] Integer#digits's error message different when base is Fixnum or Bignum
       [not found] <redmine.issue-12815.20161006123305@ruby-lang.org>
@ 2016-10-06 12:33 ` zn
  2016-11-04  4:29 ` [ruby-core:77900] [Ruby trunk Bug#12815][Closed] " muraken
  1 sibling, 0 replies; 2+ messages in thread
From: zn @ 2016-10-06 12:33 UTC (permalink / raw
  To: ruby-core

Issue #12815 has been reported by Kazuhiro NISHIYAMA.

----------------------------------------
Bug #12815: Integer#digits's error message different when base is Fixnum or Bignum
https://bugs.ruby-lang.org/issues/12815

* Author: Kazuhiro NISHIYAMA
* Status: Assigned
* Priority: Normal
* Assignee: Kenta Murata
* ruby -v: ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
* Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
----------------------------------------
Is this intended?

```
% ruby -ve '60.upto(65){|n| 1.digits(-(1<<n)) rescue p $! }'
ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
#<ArgumentError: invalid radix -1152921504606846976>
#<ArgumentError: invalid radix -2305843009213693952>
#<ArgumentError: invalid radix -4611686018427387904>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:77900] [Ruby trunk Bug#12815][Closed] Integer#digits's error message different when base is Fixnum or Bignum
       [not found] <redmine.issue-12815.20161006123305@ruby-lang.org>
  2016-10-06 12:33 ` [ruby-core:77502] [Ruby trunk Bug#12815] Integer#digits's error message different when base is Fixnum or Bignum zn
@ 2016-11-04  4:29 ` muraken
  1 sibling, 0 replies; 2+ messages in thread
From: muraken @ 2016-11-04  4:29 UTC (permalink / raw
  To: ruby-core

Issue #12815 has been updated by Kenta Murata.

Status changed from Assigned to Closed

I've fixed this on r56554

----------------------------------------
Bug #12815: Integer#digits's error message different when base is Fixnum or Bignum
https://bugs.ruby-lang.org/issues/12815#change-61213

* Author: Kazuhiro NISHIYAMA
* Status: Closed
* Priority: Normal
* Assignee: Kenta Murata
* ruby -v: ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
* Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
----------------------------------------
Is this intended?

```
% ruby -ve '60.upto(65){|n| 1.digits(-(1<<n)) rescue p $! }'
ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
#<ArgumentError: invalid radix -1152921504606846976>
#<ArgumentError: invalid radix -2305843009213693952>
#<ArgumentError: invalid radix -4611686018427387904>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
#<ArgumentError: negative radix>
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-04  3:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-12815.20161006123305@ruby-lang.org>
2016-10-06 12:33 ` [ruby-core:77502] [Ruby trunk Bug#12815] Integer#digits's error message different when base is Fixnum or Bignum zn
2016-11-04  4:29 ` [ruby-core:77900] [Ruby trunk Bug#12815][Closed] " muraken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).