Skip to content

Commit f8bc09a

Browse files
authored
Merge pull request #467 from stweil/opencl2
opencl: Fix two small bugs (both found by gcc)
2 parents 8972c0e + 10886d3 commit f8bc09a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opencl/opencl_device_selection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static ds_status getNumDeviceWithEmptyScore(ds_profile* profile,
586586
*num=0;
587587
for (i = 0; i < profile->numDevices; i++) {
588588
if (profile->devices[i].score == NULL) {
589-
*num++;
589+
(*num)++;
590590
}
591591
}
592592
return DS_SUCCESS;

opencl/openclwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ OpenclDevice::pixReadMemTiffCl(const l_uint8 *data,size_t size,l_int32 n)
11591159
}
11601160

11611161
if (pagefound == FALSE) {
1162-
L_WARNING("tiff page %d not found", procName);
1162+
L_WARNING("tiff page %d not found", procName, i);
11631163
TIFFCleanup(tif);
11641164
return NULL;
11651165
}

0 commit comments

Comments
 (0)