From: Erik Faye-Lund Date: Fri, 20 Sep 2019 14:07:47 +0000 (+0200) Subject: st/wgl: eliminate implicit cast warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a1e5a763a550b96285f10c66c2d96d5c224c2c1;p=mesa.git st/wgl: eliminate implicit cast warning I get warnings on MSVC for these implicit casts. Let's use explicit casts instead. Signed-off-by: Erik Faye-Lund Reviewed-by: Brian Paul --- diff --git a/src/gallium/state_trackers/wgl/stw_wgl.c b/src/gallium/state_trackers/wgl/stw_wgl.c index 532a5adb955..846069f56b9 100644 --- a/src/gallium/state_trackers/wgl/stw_wgl.c +++ b/src/gallium/state_trackers/wgl/stw_wgl.c @@ -258,8 +258,10 @@ wglUseFontBitmapsW( if (size != GDI_ERROR) { if (size == 0) { - glBitmap(0, 0, -gm.gmptGlyphOrigin.x, gm.gmptGlyphOrigin.y, - gm.gmCellIncX, gm.gmCellIncY, NULL); + glBitmap(0, 0, (GLfloat)-gm.gmptGlyphOrigin.x, + (GLfloat)gm.gmptGlyphOrigin.y, + (GLfloat)gm.gmCellIncX, + (GLfloat)gm.gmCellIncY, NULL); } else { buffer = realloc(buffer, size);