Use MAX macro where possible.
This commit is contained in:
		
				
					committed by
					
						 Roberto E. Vargas Caballero
						Roberto E. Vargas Caballero
					
				
			
			
				
	
			
			
			
						parent
						
							6f5f770186
						
					
				
				
					commit
					93b54cfcc4
				
			
							
								
								
									
										2
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
									
									
									
									
								
							| @ -4072,7 +4072,7 @@ main(int argc, char *argv[]) { | |||||||
| run: | run: | ||||||
| 	setlocale(LC_CTYPE, ""); | 	setlocale(LC_CTYPE, ""); | ||||||
| 	XSetLocaleModifiers(""); | 	XSetLocaleModifiers(""); | ||||||
| 	tnew(cols? cols : 1, rows? rows : 1); | 	tnew(MAX(cols, 1), MAX(rows, 1)); | ||||||
| 	xinit(); | 	xinit(); | ||||||
| 	selinit(); | 	selinit(); | ||||||
| 	run(); | 	run(); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user