mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-04 00:02:52 -05:00 
			
		
		
		
	Use Abs() macro to replace ? :.
This commit is contained in:
		
							parent
							
								
									f35d493d16
								
							
						
					
					
						commit
						1b3bb23cc8
					
				@ -508,7 +508,7 @@ EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str)
 | 
			
		||||
#ifdef HAVE_INT64_TIMESTAMP
 | 
			
		||||
					sprintf(cp, ":%02d", abs(tm->tm_sec));
 | 
			
		||||
					cp += strlen(cp);
 | 
			
		||||
					sprintf(cp, ".%06d", (fsec >= 0) ? fsec : -(fsec));
 | 
			
		||||
					sprintf(cp, ".%06d", Abs(fsec));
 | 
			
		||||
#else
 | 
			
		||||
					fsec += tm->tm_sec;
 | 
			
		||||
					sprintf(cp, ":%013.10f", fabs(fsec));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user