The open source OpenXR runtime

u/sink: Fix conversion warning

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>

authored by

Jakob Bornecrantz and committed by
Marge Bot
c04a216d d62c7d7c

+1 -1
+1 -1
src/xrt/auxiliary/util/u_sink_converter.c
··· 1071 1071 sum += xf->data[(((y * 2) + 1) * xf->stride) + (x * 2)]; 1072 1072 sum += xf->data[(((y * 2) + 1) * xf->stride) + (x * 2) + 1]; 1073 1073 1074 - converted->data[(y * converted->stride) + x] = sum / 4; 1074 + converted->data[(y * converted->stride) + x] = (uint8_t)(sum / 4); 1075 1075 } 1076 1076 } 1077 1077