mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	connection.c: Fix signedness warnings
This commit is contained in:
		
							parent
							
								
									ba32db9532
								
							
						
					
					
						commit
						3fb304bb3e
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -458,7 +458,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			s = va_arg(ap, const char *);
 | 
								s = va_arg(ap, const char *);
 | 
				
			||||||
			length = s ? strlen(s) + 1: 0;
 | 
								length = s ? strlen(s) + 1: 0;
 | 
				
			||||||
			if (end - p < DIV_ROUNDUP(length, sizeof *p) + 1)
 | 
								if (p + DIV_ROUNDUP(length, sizeof *p) + 1 > end)
 | 
				
			||||||
				goto err;
 | 
									goto err;
 | 
				
			||||||
			*p++ = length;
 | 
								*p++ = length;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -508,7 +508,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
 | 
				
			||||||
				*p++ = 0;
 | 
									*p++ = 0;
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if (end - p < DIV_ROUNDUP(array->size, sizeof *p) + 1)
 | 
								if (p + DIV_ROUNDUP(array->size, sizeof *p) + 1 > end)
 | 
				
			||||||
				goto err;
 | 
									goto err;
 | 
				
			||||||
			*p++ = array->size;
 | 
								*p++ = array->size;
 | 
				
			||||||
			memcpy(p, array->data, array->size);
 | 
								memcpy(p, array->data, array->size);
 | 
				
			||||||
| 
						 | 
					@ -573,7 +573,7 @@ wl_connection_demarshal(struct wl_connection *connection,
 | 
				
			||||||
	uint32_t *p, *next, *end, length;
 | 
						uint32_t *p, *next, *end, length;
 | 
				
			||||||
	int *fd;
 | 
						int *fd;
 | 
				
			||||||
	char *extra, **s;
 | 
						char *extra, **s;
 | 
				
			||||||
	int i, count, extra_space;
 | 
						unsigned int i, count, extra_space;
 | 
				
			||||||
	struct wl_object **object;
 | 
						struct wl_object **object;
 | 
				
			||||||
	struct wl_array **array;
 | 
						struct wl_array **array;
 | 
				
			||||||
	struct wl_closure *closure = &connection->receive_closure;
 | 
						struct wl_closure *closure = &connection->receive_closure;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue