mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* range.c (range_check): need no Fixnum check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									7627d0cea7
								
							
						
					
					
						commit
						734506e96d
					
				
					 2 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,10 @@ Mon Sep 30 20:29:10 2002  Nobuyoshi Nakada  <nobu.nokada@softhome.net>
 | 
			
		|||
	* io.c (rb_io_inspect): not need to raise IOError for closed
 | 
			
		||||
	  stream.  [ruby-talk:51871]
 | 
			
		||||
 | 
			
		||||
Mon Sep 30 03:48:15 2002  Yukihiro Matsumoto  <matz@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* range.c (range_check): need no Fixnum check.
 | 
			
		||||
 | 
			
		||||
Sun Sep 29 18:30:24 2002  Nobuyoshi Nakada  <nobu.nokada@softhome.net>
 | 
			
		||||
 | 
			
		||||
	* win32/win32.c (rb_w32_open_osfhandle): adjust
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								range.c
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								range.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -22,10 +22,8 @@ static VALUE
 | 
			
		|||
range_check(args)
 | 
			
		||||
    VALUE *args;
 | 
			
		||||
{
 | 
			
		||||
    if (!FIXNUM_P(args[0]) && !rb_obj_is_kind_of(args[0], rb_cNumeric)) {
 | 
			
		||||
	rb_funcall(args[0], id_cmp, 1, args[1]);
 | 
			
		||||
	/* rb_funcall(args[0], id_succ, 0, 0); */
 | 
			
		||||
    }
 | 
			
		||||
    rb_funcall(args[0], id_cmp, 1, args[1]);
 | 
			
		||||
    /* rb_funcall(args[0], id_succ, 0, 0); */
 | 
			
		||||
    return Qnil;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue