P4 to Git Change 1501728 by gandryey@gera-w8 on 2018/01/09 15:35:03
SWDEV-79445 - OCL generic changes and code clean-up - Code style clean-up. No functional changes. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#71 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#43 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#70 edit
This commit is contained in:
@@ -1051,7 +1051,7 @@ static void parseRequestedDeviceList(requestedDevices_t& requestedDevices) {
|
||||
int currentDeviceIndex = atoi(pch);
|
||||
// Validate device index.
|
||||
for (size_t i = 0; i < strlen(pch); i++) {
|
||||
if (!isdigit(pch[i])) {
|
||||
if (!isdigit(reinterpret_cast<unsigned char*>(pch)[i])) {
|
||||
deviceIdValid = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user