client: fix compile warnings

This commit is contained in:
David Anderson 2014-07-23 09:51:34 -07:00
parent 3156ea56fd
commit dcb72145e1
1 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ void COPROCS::correlate_gpus(
// TODO: Should we implement cc_config ignore vectors for other (future) OpenCL coprocessors?
for (i=0; i<other_opencls.size(); i++) {
if (i > max_other_coprocs) {
if ((int)i > max_other_coprocs) {
other_opencls[i].is_used = COPROC_UNUSED;
}
other_opencls[i].description(buf, sizeof(buf), other_opencls[i].name);
@ -292,7 +292,7 @@ void COPROCS::correlate_gpus(
int COPROCS::add_other_coproc_types() {
int retval = 0;
for (int i=0; i<other_opencls.size(); i++) {
for (unsigned int i=0; i<other_opencls.size(); i++) {
if (other_opencls[i].is_used != COPROC_USED) continue;
if (n_rsc >= MAX_RSC) {
retval = ERR_BUFFER_OVERFLOW;