From: <bor...@us...> - 2022-10-05 22:00:47
|
Revision: 3784 http://sourceforge.net/p/ftm/code/3784 Author: borghesi Date: 2022-10-05 22:00:45 +0000 (Wed, 05 Oct 2022) Log Message: ----------- ffvec: fixed init bug in get_min_max_in_range Modified Paths: -------------- trunk/ftm/ftmlib/classes/fvec.c Modified: trunk/ftm/ftmlib/classes/fvec.c =================================================================== --- trunk/ftm/ftmlib/classes/fvec.c 2022-10-05 20:34:14 UTC (rev 3783) +++ trunk/ftm/ftmlib/classes/fvec.c 2022-10-05 22:00:45 UTC (rev 3784) @@ -547,7 +547,7 @@ { if(size > 0 && start < size && start >= 0) { - float min = ptr[start]; + float min = ptr[stride*start]; int i; int num = (start+range >= size) ? size-start : range; @@ -569,7 +569,7 @@ { if(size > 0 && start < size && start >= 0) { - float max = ptr[start]; + float max = ptr[stride*start]; int i; int num = (start+range >= size) ? size-start : range; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |