Upcast conversions are by definition unsafe. There are however some location where such conversion are more safe. In this case send_item callback is registered specifically for this type of RedChannel making the conversion more reliable. The other conversion (CursorChannel -> RedChannel) became safe.
5841a2a Move upcast conversion to a safer place
server/cursor-channel.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
Upstream: cgit.freedesktop.org