Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52439 - branches/release/libs/program_options/src
From: ghost_at_[hidden]
Date: 2009-04-17 05:35:12


Author: vladimir_prus
Date: 2009-04-17 05:35:10 EDT (Fri, 17 Apr 2009)
New Revision: 52439
URL: http://svn.boost.org/trac/boost/changeset/52439

Log:
Fix warnings
Text files modified:
   branches/release/libs/program_options/src/cmdline.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: branches/release/libs/program_options/src/cmdline.cpp
==============================================================================
--- branches/release/libs/program_options/src/cmdline.cpp (original)
+++ branches/release/libs/program_options/src/cmdline.cpp 2009-04-17 05:35:10 EDT (Fri, 17 Apr 2009)
@@ -272,8 +272,8 @@
             if (!xd)
                 continue;
 
- int min_tokens = xd->semantic()->min_tokens();
- int max_tokens = xd->semantic()->max_tokens();
+ unsigned min_tokens = xd->semantic()->min_tokens();
+ unsigned max_tokens = xd->semantic()->max_tokens();
             if (min_tokens < max_tokens && opt.value.size() < max_tokens)
             {
                 // This option may grab some more tokens.
@@ -281,7 +281,7 @@
                 // recognized as key options.
 
                 int can_take_more = max_tokens - opt.value.size();
- int j = i+1;
+ unsigned j = i+1;
                 for (; can_take_more && j < result.size(); --can_take_more, ++j)
                 {
                     option& opt2 = result[j];


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