dxgsg9: fix type mismatch in min() call

This commit is contained in:
rdb 2018-06-07 10:34:47 +02:00
parent e72fab9520
commit b7f8ddfe35

View File

@ -207,7 +207,7 @@ issue_parameters(GSG *gsg, int altered) {
// Calculate how many elements to transfer; no more than it expects,
// but certainly no more than we have.
int input_size = min(abs(spec._dim[0] * spec._dim[1] * spec._dim[2]), ptr_data->_size);
int input_size = min(abs(spec._dim[0] * spec._dim[1] * spec._dim[2]), (int)ptr_data->_size);
CGparameter p = _cg_parameter_map[spec._id._seqno];
switch (ptr_data->_type) {