mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04: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 | #ifdef HAVE_INT64_TIMESTAMP | ||||||
| 					sprintf(cp, ":%02d", abs(tm->tm_sec)); | 					sprintf(cp, ":%02d", abs(tm->tm_sec)); | ||||||
| 					cp += strlen(cp); | 					cp += strlen(cp); | ||||||
| 					sprintf(cp, ".%06d", (fsec >= 0) ? fsec : -(fsec)); | 					sprintf(cp, ".%06d", Abs(fsec)); | ||||||
| #else | #else | ||||||
| 					fsec += tm->tm_sec; | 					fsec += tm->tm_sec; | ||||||
| 					sprintf(cp, ":%013.10f", fabs(fsec)); | 					sprintf(cp, ":%013.10f", fabs(fsec)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user