From f61e9a958bd8d61cb7ca575ca987caefc6edbffd Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 10 Mar 2018 14:28:10 +0100 Subject: [PATCH] st/nine: Fixes warning about implicit conversion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Makes the conversion explicit. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102542 Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph Tested-by: Dieter Nützel CC: "17.3 18.0" --- src/gallium/state_trackers/nine/nine_ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index eb673e4aff9..6c30839b29b 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -1935,7 +1935,7 @@ nine_ff_load_lights(struct NineDevice9 *device) dst[38 + l * 8].x = cosf(light->Theta * 0.5f); dst[38 + l * 8].y = cosf(light->Phi * 0.5f); dst[38 + l * 8].z = 1.0f / (dst[38 + l * 8].x - dst[38 + l * 8].y); - dst[39 + l * 8].w = (l + 1) == context->ff.num_lights_active; + dst[39 + l * 8].w = (float)((l + 1) == context->ff.num_lights_active); } } -- 2.30.2