From c224f351ecb6594cff7fedae7dd089b652e659bd Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 17 Jul 2015 21:50:06 +0200 Subject: [PATCH] Fix gcc/clang compile error --- panda/src/glstuff/glShaderContext_src.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index 5566680c17..bb58a45572 100644 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -1186,7 +1186,7 @@ issue_parameters(int altered) { } GLint p = _glsl_parameter_map[spec._id._seqno]; - int array_size = min(spec._dim[0], ptr_data->_size / spec._dim[1]); + int array_size = min(spec._dim[0], (int)ptr_data->_size / spec._dim[1]); switch (spec._type) { case Shader::SPT_float: {