Actions
Bug #9570
closedSomething wrong with Enumerator#size ?
    Bug #9570:
    Something wrong with Enumerator#size ?
  
Description
enum = 2.step(1, 3)
enum.size  #=> 1
It should be 0, shouldn't it? ( Windows )
        
           Updated by marcandre (Marc-Andre Lafortune) over 11 years ago
          Updated by marcandre (Marc-Andre Lafortune) over 11 years ago
          
          
        
        
      
      - Target version changed from 2.6 to 2.2.0
- Assignee changed from matz (Yukihiro Matsumoto) to marcandre (Marc-Andre Lafortune)
Indeed, I'll fix this asap. Thanks
        
           Updated by nobu (Nobuyoshi Nakada) over 11 years ago
          Updated by nobu (Nobuyoshi Nakada) over 11 years ago
          
          
        
        
      
      - Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r45187.
numeric.c: check signs before division
- numeric.c (ruby_num_interval_step_size): check signs and get rid
 of implementation dependent behavior of negative division.
 [ruby-core:61106] [Bug #9570]
        
           Updated by marcandre (Marc-Andre Lafortune) over 11 years ago
          Updated by marcandre (Marc-Andre Lafortune) over 11 years ago
          
          
        
        
      
      Hi Nobu.
While I appreciate the intention, why did you fix this while I stated I would and assigned the issue to myself?
        
           Updated by nobu (Nobuyoshi Nakada) over 11 years ago
          Updated by nobu (Nobuyoshi Nakada) over 11 years ago
          
          
        
        
      
      Sorry, I did it last night but had no time to commit, and missed to check the latest status this morning.
        
           Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          
          
        
        
      
      - Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
        
           Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          
          
        
        
      
      - Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED
r45187, r45205, r45212 and r45213 were backported to ruby_2_0_0 at r45250.
        
           Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
          
          
        
        
      
      - Backport changed from 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: DONE
r45187, r45205, r45206, r45212 and r45213 were backported into ruby_2_1 at 46226.
Actions