mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* util.c (BSD__hdtoa): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									93164bd9d7
								
							
						
					
					
						commit
						7271a56417
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								util.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								util.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3969,7 +3969,7 @@ BSD__hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
 | 
			
		|||
 | 
			
		||||
	/* Round to the desired number of digits. */
 | 
			
		||||
	if (SIGFIGS > ndigits && ndigits > 0) {
 | 
			
		||||
		float redux = 1.0;
 | 
			
		||||
		float redux = 1.0f;
 | 
			
		||||
		int offset = 4 * ndigits + DBL_MAX_EXP - 4 - DBL_MANT_DIG;
 | 
			
		||||
		dexp_set(u, offset);
 | 
			
		||||
		u.d += redux;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue