From: Brian Paul Date: Sat, 27 Oct 2012 14:58:19 +0000 (-0600) Subject: mesa: silence some MSVC conversion warnings in get.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6c83e1661c63cf719528f1e80e6996ce49c2d08;p=mesa.git mesa: silence some MSVC conversion warnings in get.c Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index e38d594e21c..805f0f978a7 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1149,7 +1149,7 @@ _mesa_GetFloatv(GLenum pname, GLfloat *params) break; case TYPE_DOUBLEN: - params[0] = ((GLdouble *) p)[0]; + params[0] = (GLfloat) (((GLdouble *) p)[0]); break; case TYPE_INT_4: @@ -1170,7 +1170,7 @@ _mesa_GetFloatv(GLenum pname, GLfloat *params) break; case TYPE_INT64: - params[0] = ((GLint64 *) p)[0]; + params[0] = (GLfloat) (((GLint64 *) p)[0]); break; case TYPE_BOOLEAN: @@ -1449,7 +1449,7 @@ _mesa_GetDoublev(GLenum pname, GLdouble *params) break; case TYPE_INT64: - params[0] = ((GLint64 *) p)[0]; + params[0] = (GLdouble) (((GLint64 *) p)[0]); break; case TYPE_BOOLEAN: