From a879e1fcd69490f2a93cc88665810e72e6ca677d Mon Sep 17 00:00:00 2001 From: Rohit Girdhar Date: Mon, 17 Feb 2014 19:00:36 +0530 Subject: [PATCH] fixed warnings --- modules/core/include/opencv2/core/types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/types.hpp b/modules/core/include/opencv2/core/types.hpp index bfc63816c2..2a1070303a 100644 --- a/modules/core/include/opencv2/core/types.hpp +++ b/modules/core/include/opencv2/core/types.hpp @@ -1566,8 +1566,8 @@ RotatedRect::RotatedRect(const std::vector& _points) int ht_i = (wd_i + 1) % 2; float _angle = atan(vecs[wd_i][1] / vecs[wd_i][0]) * 180.0f / (float) CV_PI; - float _width = norm(vecs[wd_i]); - float _height = norm(vecs[ht_i]); + float _width = (float) norm(vecs[wd_i]); + float _height = (float) norm(vecs[ht_i]); center = _center; size = Size2f(_width, _height);