mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
core: avoid function type cast, make happy UBSAN
backporting of commit: d3d13c41c4
This commit is contained in:
@@ -228,12 +228,12 @@ void convertFp16(InputArray _src, OutputArray _dst)
|
||||
}
|
||||
else
|
||||
ddepth = CV_16S;
|
||||
func = (BinaryFunc)get_cvt32f16f();
|
||||
func = get_cvt32f16f();
|
||||
break;
|
||||
case CV_16S:
|
||||
//case CV_16F:
|
||||
ddepth = CV_32F;
|
||||
func = (BinaryFunc)get_cvt16f32f();
|
||||
func = get_cvt16f32f();
|
||||
break;
|
||||
default:
|
||||
CV_Error(Error::StsUnsupportedFormat, "Unsupported input depth");
|
||||
|
||||
Reference in New Issue
Block a user