[med-svn] [aghermann] 17/60: careful with size_t args to value_within

andrei zavada hmmr-guest at alioth.debian.org
Mon Nov 4 23:49:54 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit 5a01afbdc4ca2fdf059545c7a0cc50abd39c62d3
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sat Oct 12 00:16:20 2013 +0300

    careful with size_t args to value_within
---
 upstream/src/aghermann/ui/sf/channel.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upstream/src/aghermann/ui/sf/channel.cc b/upstream/src/aghermann/ui/sf/channel.cc
index 5ed6a22..78c5976 100644
--- a/upstream/src/aghermann/ui/sf/channel.cc
+++ b/upstream/src/aghermann/ui/sf/channel.cc
@@ -156,7 +156,7 @@ SChannel (agh::CRecording& r,
                 for ( size_t i = 0; i < raw_profile.size(); ++i )
                         ++histogram[ agh::alg::value_within(
                                         (size_t)roundf((raw_profile[i] - hist_range_min) / hist_binsize),
-                                        0lu, hist_bins-1) ];
+                                        (size_t)0, (size_t)hist_bins-1) ];
 
                 static const size_t steady_secs = 10;
                 static const double max_dev_factor = 1.1;

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list