mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Merge pull request #20633 from alalek:ocl_dumpValue_handle_null
This commit is contained in:
commit
8fed5fc5ae
@ -2981,6 +2981,8 @@ bool Kernel::empty() const
|
||||
|
||||
static cv::String dumpValue(size_t sz, const void* p)
|
||||
{
|
||||
if (!p)
|
||||
return "NULL";
|
||||
if (sz == 4)
|
||||
return cv::format("%d / %uu / 0x%08x / %g", *(int*)p, *(int*)p, *(int*)p, *(float*)p);
|
||||
if (sz == 8)
|
||||
|
Loading…
Reference in New Issue
Block a user