mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	formatting.c cleanup: Remove unnecessary extra parentheses
Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/6dd9d208-a3ed-49b5-b03d-8617261da973%40eisentraut.org
This commit is contained in:
		@@ -1200,7 +1200,7 @@ NUMDesc_prepare(NUMDesc *num, FormatNode *n)
 | 
			
		||||
			break;
 | 
			
		||||
 | 
			
		||||
		case NUM_B:
 | 
			
		||||
			if (num->pre == 0 && num->post == 0 && (!IS_ZERO(num)))
 | 
			
		||||
			if (num->pre == 0 && num->post == 0 && !IS_ZERO(num))
 | 
			
		||||
				num->flag |= NUM_F_BLANK;
 | 
			
		||||
			break;
 | 
			
		||||
 | 
			
		||||
@@ -1541,7 +1541,7 @@ get_th(const char *num, int type)
 | 
			
		||||
	 * All "teens" (<x>1[0-9]) get 'TH/th', while <x>[02-9][123] still get
 | 
			
		||||
	 * 'ST/st', 'ND/nd', 'RD/rd', respectively
 | 
			
		||||
	 */
 | 
			
		||||
	if ((len > 1) && (num[len - 2] == '1'))
 | 
			
		||||
	if (len > 1 && num[len - 2] == '1')
 | 
			
		||||
		last = 0;
 | 
			
		||||
 | 
			
		||||
	switch (last)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user