Cycles: Fix strict compiler warning

Pointer used for math arithmetics in assert().
CUDA device pointer is actually an integer type, not a pointer.
This commit is contained in:
Sergey Sharybin
2019-11-07 11:06:41 +01:00
parent 79b703bb63
commit aa2904ea13

View File

@@ -1189,7 +1189,7 @@ class OptiXDevice : public Device {
size_t bytes = 0;
CUdeviceptr mem = 0;
check_result_cuda(cuModuleGetGlobal(&mem, &bytes, cuda_module, name));
assert(mem != NULL && bytes == data_size);
assert(mem != 0 && bytes == data_size);
check_result_cuda(cuMemcpyHtoD(mem, data, data_size));
}