Skip to content

Commit a7d2758

Browse files
committed
opencl: Fix typo in name of local variable
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 2fbc8cf commit a7d2758

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opencl/openclwrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
31713171
// cleanup
31723172
// TODO: call destructor for profile object?
31733173

3174-
bool overrided = false;
3174+
bool overridden = false;
31753175
char *overrideDeviceStr = getenv("TESSERACT_OPENCL_DEVICE");
31763176
if (overrideDeviceStr != NULL) {
31773177
int overrideDeviceIdx = atoi(overrideDeviceStr);
@@ -3181,7 +3181,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
31813181
"%i)\n",
31823182
overrideDeviceStr, overrideDeviceIdx);
31833183
bestDeviceIdx = overrideDeviceIdx - 1;
3184-
overrided = true;
3184+
overridden = true;
31853185
} else {
31863186
printf(
31873187
"[DS] Ignoring invalid TESSERACT_OPENCL_DEVICE=%s ([1,%i] are "
@@ -3190,7 +3190,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
31903190
}
31913191
}
31923192

3193-
if (overrided) {
3193+
if (overridden) {
31943194
printf("[DS] Overridden Device[%i]: \"%s\" (%s)\n", bestDeviceIdx + 1,
31953195
profile->devices[bestDeviceIdx].oclDeviceName,
31963196
profile->devices[bestDeviceIdx].type == DS_DEVICE_OPENCL_DEVICE

0 commit comments

Comments
 (0)