mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/syck/rubyext.c (mktime_do): use ISDIGIT().
[ruby-core:43060] [Bug #6108] * ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char. [ruby-core:43060] [Bug #6108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									5c9d7c54ab
								
							
						
					
					
						commit
						b854733d51
					
				
					 3 changed files with 10 additions and 2 deletions
				
			
		|  | @ -1,3 +1,11 @@ | |||
| Sat Mar  3 08:03:29 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* ext/syck/rubyext.c (mktime_do): use ISDIGIT(). | ||||
| 	  [ruby-core:43060] [Bug #6108] | ||||
| 
 | ||||
| 	* ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char. | ||||
| 	  [ruby-core:43060] [Bug #6108] | ||||
| 
 | ||||
| Sat Mar  3 06:57:14 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* configure.in (ruby_pc): make configurable.  [Bug #6051] | ||||
|  |  | |||
|  | @ -277,7 +277,7 @@ mktime_do(VALUE varg) | |||
|         const char *end = ptr + 1; | ||||
|         const char *begin = end; | ||||
|         ptrdiff_t length; | ||||
|         while ( isdigit( *end ) ) end++; | ||||
|         while ( ISDIGIT( *end ) ) end++; | ||||
|         if ((length = (end - begin)) > padding) length = padding; | ||||
|         MEMCPY(padded, begin, char, length); | ||||
|         usec = strtol(padded, NULL, 10); | ||||
|  |  | |||
|  | @ -2361,7 +2361,7 @@ ScalarBlock: | |||
|             { | ||||
|                 nlDoWhat = NL_KEEP; | ||||
|             } | ||||
|             else if ( isdigit( *yyt ) ) | ||||
|             else if ( isdigit( (unsigned char)*yyt ) ) | ||||
|             { | ||||
|                 forceIndent = rb_long2int(strtol( yyt, NULL, 10 )); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu