From 8a888cd9ceeb61d86774022c7b71a12e8f0667f9 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 10 Jun 2011 06:37:24 +0000 Subject: [PATCH] fixed RNG::uniform(double,double) (ticket #1131) --- modules/core/include/opencv2/core/operations.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 71329dba4e..6c5dac24af 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -2275,7 +2275,7 @@ inline RNG::operator double() } inline int RNG::uniform(int a, int b) { return a == b ? a : next()%(b - a) + a; } inline float RNG::uniform(float a, float b) { return ((float)*this)*(b - a) + a; } -inline double RNG::uniform(double a, double b) { return ((float)*this)*(b - a) + a; } +inline double RNG::uniform(double a, double b) { return ((double)*this)*(b - a) + a; } inline TermCriteria::TermCriteria() : type(0), maxCount(0), epsilon(0) {} inline TermCriteria::TermCriteria(int _type, int _maxCount, double _epsilon)