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) {
 | 
			
		||||
        goto fail;
 | 
			
		||||
    }
 | 
			
		||||
    integral = modf(val, &fraction);
 | 
			
		||||
    if (integral != 0) {
 | 
			
		||||
    fraction = modf(val, &integral);
 | 
			
		||||
    if (fraction != 0) {
 | 
			
		||||
        mul_required = 1;
 | 
			
		||||
    }
 | 
			
		||||
    /*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue