fixed potential bug in IS_SET().
This commit is contained in:
		
							parent
							
								
									fbb66da9a9
								
							
						
					
					
						commit
						a1018e0e9e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								st.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
										
									
									
									
								
							| 
						 | 
					@ -34,7 +34,7 @@
 | 
				
			||||||
#define BETWEEN(x, a, b)  ((a) <= (x) && (x) <= (b))
 | 
					#define BETWEEN(x, a, b)  ((a) <= (x) && (x) <= (b))
 | 
				
			||||||
#define LIMIT(x, a, b)    (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
 | 
					#define LIMIT(x, a, b)    (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
 | 
				
			||||||
#define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg)
 | 
					#define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg)
 | 
				
			||||||
#define IS_SET(flag) (term.mode & flag)
 | 
					#define IS_SET(flag) (term.mode & (flag))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Attribute, Cursor, Character state, Terminal mode, Screen draw mode */
 | 
					/* Attribute, Cursor, Character state, Terminal mode, Screen draw mode */
 | 
				
			||||||
enum { ATTR_NULL=0 , ATTR_REVERSE=1 , ATTR_UNDERLINE=2, ATTR_BOLD=4, ATTR_GFX=8 };
 | 
					enum { ATTR_NULL=0 , ATTR_REVERSE=1 , ATTR_UNDERLINE=2, ATTR_BOLD=4, ATTR_GFX=8 };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue