mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	scanner: fix a signedness warning
Trivial fix to a warning: comparison between signed and unsigned integer expressions Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
		
							parent
							
								
									a4b36d70eb
								
							
						
					
					
						commit
						cc4750b7df
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -389,7 +389,8 @@ character_data(void *data, const XML_Char *s, int len)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct parse_context *ctx = data;
 | 
						struct parse_context *ctx = data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ctx->character_data_length + len > sizeof (ctx->character_data)) {
 | 
						if (ctx->character_data_length + len >
 | 
				
			||||||
 | 
						    (int)sizeof (ctx->character_data)) {
 | 
				
			||||||
		fprintf(stderr, "too much character data");
 | 
							fprintf(stderr, "too much character data");
 | 
				
			||||||
		exit(EXIT_FAILURE);
 | 
							exit(EXIT_FAILURE);
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue