Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-01-09 15:33:07


Author: eric_niebler
Date: 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
New Revision: 42642
URL: http://svn.boost.org/trac/boost/changeset/42642

Log:
fix more signed/unsigned warnings
Text files modified:
   trunk/boost/accumulators/statistics/peaks_over_threshold.hpp | 2 +-
   trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp | 2 +-
   trunk/boost/accumulators/statistics/weighted_tail_mean.hpp | 2 +-
   trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp | 2 +-
   trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp | 2 +-
   5 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/accumulators/statistics/peaks_over_threshold.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/peaks_over_threshold.hpp (original)
+++ trunk/boost/accumulators/statistics/peaks_over_threshold.hpp 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
@@ -235,7 +235,7 @@
                 );
 
                 // If n is in a valid range, return result, otherwise return NaN or throw exception
- if ( n >= tail(args).size())
+ if ( n >= static_cast<std::size_t>(tail(args).size()))
                 {
                     if (std::numeric_limits<float_type>::has_quiet_NaN)
                     {

Modified: trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
@@ -165,7 +165,7 @@
 
                 while (sum < threshold)
                 {
- if (n < tail_weights(args).size())
+ if (n < static_cast<std::size_t>(tail_weights(args).size()))
                     {
                         mu_ += *(tail_weights(args).begin() + n) * *(tail(args).begin() + n);
                         sigma2_ += *(tail_weights(args).begin() + n) * *(tail(args).begin() + n) * (*(tail(args).begin() + n));

Modified: trunk/boost/accumulators/statistics/weighted_tail_mean.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_mean.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_mean.hpp 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
@@ -94,7 +94,7 @@
 
             while (sum < threshold)
             {
- if (n < tail_weights(args).size())
+ if (n < static_cast<std::size_t>(tail_weights(args).size()))
                 {
                     sum += *(tail_weights(args).begin() + n);
                     n++;

Modified: trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
@@ -78,7 +78,7 @@
 
             while (sum < threshold)
             {
- if (n < tail_weights(args).size())
+ if (n < static_cast<std::size_t>(tail_weights(args).size()))
                 {
                     sum += *(tail_weights(args).begin() + n);
                     n++;

Modified: trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp 2008-01-09 15:33:05 EST (Wed, 09 Jan 2008)
@@ -121,7 +121,7 @@
 
             while (sum < threshold)
             {
- if (n < tail_weights(args).size())
+ if (n < static_cast<std::size_t>(tail_weights(args).size()))
                 {
                     sum += *(tail_weights(args).begin() + n);
                     n++;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk