ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:115035] [Ruby master Bug#19926] Range#size returns an incorrect result for ranges with a Rational endpoint
@ 2023-10-13  6:10 kyanagi (Kouhei Yanagita) via ruby-core
  2023-10-13 23:59 ` [ruby-core:115050] " kyanagi (Kouhei Yanagita) via ruby-core
  0 siblings, 1 reply; 2+ messages in thread
From: kyanagi (Kouhei Yanagita) via ruby-core @ 2023-10-13  6:10 UTC (permalink / raw
  To: ruby-core; +Cc: kyanagi (Kouhei Yanagita)

Issue #19926 has been reported by kyanagi (Kouhei Yanagita).

----------------------------------------
Bug #19926: Range#size returns an incorrect result for ranges with a Rational endpoint
https://bugs.ruby-lang.org/issues/19926

* Author: kyanagi (Kouhei Yanagita)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0dev (2023-10-12T17:32:45Z master 81399a5c46) [arm64-darwin22]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
```
% ~/tmp/ruby-master/bin/ruby -e '(1...3.1r).each { p _1 }'
1
2
3
```

```
% ~/tmp/ruby-master/bin/ruby -e 'p (1...3.1r).size'
2
```

```
% ~/tmp/ruby-master/bin/ruby -e 'p (1...3.1).size'
3
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:115050] [Ruby master Bug#19926] Range#size returns an incorrect result for ranges with a Rational endpoint
  2023-10-13  6:10 [ruby-core:115035] [Ruby master Bug#19926] Range#size returns an incorrect result for ranges with a Rational endpoint kyanagi (Kouhei Yanagita) via ruby-core
@ 2023-10-13 23:59 ` kyanagi (Kouhei Yanagita) via ruby-core
  0 siblings, 0 replies; 2+ messages in thread
From: kyanagi (Kouhei Yanagita) via ruby-core @ 2023-10-13 23:59 UTC (permalink / raw
  To: ruby-core; +Cc: kyanagi (Kouhei Yanagita)

Issue #19926 has been updated by kyanagi (Kouhei Yanagita).


I made a fix: https://github.com/ruby/ruby/pull/8660

----------------------------------------
Bug #19926: Range#size returns an incorrect result for ranges with a Rational endpoint
https://bugs.ruby-lang.org/issues/19926#change-104924

* Author: kyanagi (Kouhei Yanagita)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0dev (2023-10-12T17:32:45Z master 81399a5c46) [arm64-darwin22]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
```
% ~/tmp/ruby-master/bin/ruby -e '(1...3.1r).each { p _1 }'
1
2
3
```

```
% ~/tmp/ruby-master/bin/ruby -e 'p (1...3.1r).size'
2
```

```
% ~/tmp/ruby-master/bin/ruby -e 'p (1...3.1).size'
3
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

end of thread, other threads:[~2023-10-14  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13  6:10 [ruby-core:115035] [Ruby master Bug#19926] Range#size returns an incorrect result for ranges with a Rational endpoint kyanagi (Kouhei Yanagita) via ruby-core
2023-10-13 23:59 ` [ruby-core:115050] " kyanagi (Kouhei Yanagita) via ruby-core

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).