Browse Source

Platform: fix Clang compiler warning about signed/unsigned comparison.

pull/459/head
Vladimír Vondruš 6 years ago
parent
commit
1f55a11f31
  1. 2
      src/Magnum/Platform/WindowlessEglApplication.cpp

2
src/Magnum/Platform/WindowlessEglApplication.cpp

@ -184,7 +184,7 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G
Debug{} << "Platform::WindowlessEglApplication: eglQueryDeviceStringEXT(EGLDevice=" << Debug::nospace << selectedDevice << Debug::nospace << "):" << eglQueryDeviceStringEXT(devices[selectedDevice], EGL_EXTENSIONS);
EGLAttrib cudaDeviceNumber;
if(eglQueryDeviceAttribEXT(devices[selectedDevice], EGL_CUDA_DEVICE_NV, &cudaDeviceNumber) && cudaDeviceNumber == configuration.cudaDevice())
if(eglQueryDeviceAttribEXT(devices[selectedDevice], EGL_CUDA_DEVICE_NV, &cudaDeviceNumber) && UnsignedInt(cudaDeviceNumber) == configuration.cudaDevice())
break;
}

Loading…
Cancel
Save