diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index 7101fb62d0..50a40f4e30 100644 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -1544,7 +1544,7 @@ issue_parameters(int altered) { } GLint p = 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: {