mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	string.c: Supress logical-op-parentheses warning
* string.c(rb_str_upcase_bang): Supress logical-op-parentheses warning Patch by Fukuo Kadota <fukuo-kadota@cookpad.com>, Closes [GH-1570] [Bug #13387]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									7e1c65dccd
								
							
						
					
					
						commit
						31a755e4f2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								string.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								string.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -6139,7 +6139,7 @@ rb_str_upcase_bang(int argc, VALUE *argv, VALUE str)
 | 
			
		|||
    str_modify_keep_cr(str);
 | 
			
		||||
    enc = STR_ENC_GET(str);
 | 
			
		||||
    rb_str_check_dummy_enc(enc);
 | 
			
		||||
    if ((flags&ONIGENC_CASE_ASCII_ONLY) && (enc==rb_utf8_encoding() || rb_enc_mbmaxlen(enc)==1)
 | 
			
		||||
    if (((flags&ONIGENC_CASE_ASCII_ONLY) && (enc==rb_utf8_encoding() || rb_enc_mbmaxlen(enc)==1))
 | 
			
		||||
	|| (!(flags&ONIGENC_CASE_FOLD_TURKISH_AZERI) && ENC_CODERANGE(str)==ENC_CODERANGE_7BIT)) {
 | 
			
		||||
        char *s = RSTRING_PTR(str), *send = RSTRING_END(str);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -6205,7 +6205,7 @@ rb_str_downcase_bang(int argc, VALUE *argv, VALUE str)
 | 
			
		|||
    str_modify_keep_cr(str);
 | 
			
		||||
    enc = STR_ENC_GET(str);
 | 
			
		||||
    rb_str_check_dummy_enc(enc);
 | 
			
		||||
    if ((flags&ONIGENC_CASE_ASCII_ONLY) && (enc==rb_utf8_encoding() || rb_enc_mbmaxlen(enc)==1)
 | 
			
		||||
    if (((flags&ONIGENC_CASE_ASCII_ONLY) && (enc==rb_utf8_encoding() || rb_enc_mbmaxlen(enc)==1))
 | 
			
		||||
	|| (!(flags&ONIGENC_CASE_FOLD_TURKISH_AZERI) && ENC_CODERANGE(str)==ENC_CODERANGE_7BIT)) {
 | 
			
		||||
        char *s = RSTRING_PTR(str), *send = RSTRING_END(str);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue