mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Deprecated convertTypeStr and made new variant that also takes the buffer size
This allows removing the unsafe sprintf.
This commit is contained in:
@@ -132,7 +132,7 @@ static bool ocl_accumulate( InputArray _src, InputArray _src2, InputOutputArray
|
||||
opMap[op_type], haveMask ? " -D HAVE_MASK" : "",
|
||||
ocl::typeToStr(sdepth), kercn, ocl::typeToStr(ddepth),
|
||||
doubleSupport ? " -D DOUBLE_SUPPORT" : "", rowsPerWI,
|
||||
ocl::convertTypeStr(sdepth, ddepth, 1, cvt)));
|
||||
ocl::convertTypeStr(sdepth, ddepth, 1, cvt, sizeof(cvt))));
|
||||
if (k.empty())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user