Skip to content

Commit c224f35

Browse files
committed
Fix gcc/clang compile error
1 parent 2215074 commit c224f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panda/src/glstuff/glShaderContext_src.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ issue_parameters(int altered) {
11861186
}
11871187

11881188
GLint p = _glsl_parameter_map[spec._id._seqno];
1189-
int array_size = min(spec._dim[0], ptr_data->_size / spec._dim[1]);
1189+
int array_size = min(spec._dim[0], (int)ptr_data->_size / spec._dim[1]);
11901190
switch (spec._type) {
11911191
case Shader::SPT_float:
11921192
{

0 commit comments

Comments
 (0)