strtosz(): Fix name confusion in use of modf()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
		
							parent
							
								
									a2afc2c163
								
							
						
					
					
						commit
						7eb053494c
					
				
							
								
								
									
										4
									
								
								cutils.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								cutils.c
									
									
									
									
									
								
							| @ -304,8 +304,8 @@ int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix) | |||||||
|     if (isnan(val) || endptr == nptr || errno != 0) { |     if (isnan(val) || endptr == nptr || errno != 0) { | ||||||
|         goto fail; |         goto fail; | ||||||
|     } |     } | ||||||
|     integral = modf(val, &fraction); |     fraction = modf(val, &integral); | ||||||
|     if (integral != 0) { |     if (fraction != 0) { | ||||||
|         mul_required = 1; |         mul_required = 1; | ||||||
|     } |     } | ||||||
|     /*
 |     /*
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jes Sorensen
						Jes Sorensen