From 57dea11e7ca492733be14c1832f93814b75d242c Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Mon, 19 Oct 2020 00:36:10 +1300 Subject: [PATCH] nine: Make vdecl_index_map always signed vdecl_index_map needs to be able to store negative values, but char is not signed on all platforms, so change it to int8_t. Signed-off-by: David Heidelberg Part-of: --- src/gallium/frontends/nine/nine_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/nine/nine_state.c b/src/gallium/frontends/nine/nine_state.c index c991aa312a5..f800dd94f64 100644 --- a/src/gallium/frontends/nine/nine_state.c +++ b/src/gallium/frontends/nine/nine_state.c @@ -839,7 +839,7 @@ update_vertex_elements(struct NineDevice9 *device) const struct NineVertexShader9 *vs; unsigned n, b, i; int index; - char vdecl_index_map[16]; /* vs->num_inputs <= 16 */ + int8_t vdecl_index_map[16]; /* vs->num_inputs <= 16 */ uint16_t used_streams = 0; int dummy_vbo_stream = -1; BOOL need_dummy_vbo = FALSE; @@ -3040,7 +3040,7 @@ update_vertex_elements_sw(struct NineDevice9 *device) const struct NineVertexShader9 *vs; unsigned n, b, i; int index; - char vdecl_index_map[16]; /* vs->num_inputs <= 16 */ + int8_t vdecl_index_map[16]; /* vs->num_inputs <= 16 */ char used_streams[device->caps.MaxStreams]; int dummy_vbo_stream = -1; BOOL need_dummy_vbo = FALSE;