mirror of
https://github.com/opencv/opencv.git
synced 2025-06-18 08:05:23 +08:00
core(ocl): handle NULL in dumpValue() debug call
- NULL is used for allocation of workgroup local variables
This commit is contained in:
parent
1259a474ba
commit
f25951c412
@ -2981,6 +2981,8 @@ bool Kernel::empty() const
|
|||||||
|
|
||||||
static cv::String dumpValue(size_t sz, const void* p)
|
static cv::String dumpValue(size_t sz, const void* p)
|
||||||
{
|
{
|
||||||
|
if (!p)
|
||||||
|
return "NULL";
|
||||||
if (sz == 4)
|
if (sz == 4)
|
||||||
return cv::format("%d / %uu / 0x%08x / %g", *(int*)p, *(int*)p, *(int*)p, *(float*)p);
|
return cv::format("%d / %uu / 0x%08x / %g", *(int*)p, *(int*)p, *(int*)p, *(float*)p);
|
||||||
if (sz == 8)
|
if (sz == 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user