1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Fixed several issues found by static analysis

This commit is contained in:
Maksim Shabunin
2018-10-23 15:06:33 +03:00
parent e959f449ae
commit 0ccd810738
7 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -654,7 +654,7 @@ class float16_t
public:
#if CV_FP16_TYPE
float16_t() {}
float16_t() : h(0) {}
explicit float16_t(float x) { h = (__fp16)x; }
operator float() const { return (float)h; }
static float16_t fromBits(ushort w)
@@ -681,7 +681,7 @@ protected:
__fp16 h;
#else
float16_t() {}
float16_t() : w(0) {}
explicit float16_t(float x)
{
#if CV_AVX2