Skip to content

Commit ed4847e

Browse files
committed
Fix warnings
[SVN r52439]
1 parent 6eef67f commit ed4847e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmdline.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,16 @@ namespace boost { namespace program_options { namespace detail {
272272
if (!xd)
273273
continue;
274274

275-
int min_tokens = xd->semantic()->min_tokens();
276-
int max_tokens = xd->semantic()->max_tokens();
275+
unsigned min_tokens = xd->semantic()->min_tokens();
276+
unsigned max_tokens = xd->semantic()->max_tokens();
277277
if (min_tokens < max_tokens && opt.value.size() < max_tokens)
278278
{
279279
// This option may grab some more tokens.
280280
// We only allow to grab tokens that are not already
281281
// recognized as key options.
282282

283283
int can_take_more = max_tokens - opt.value.size();
284-
int j = i+1;
284+
unsigned j = i+1;
285285
for (; can_take_more && j < result.size(); --can_take_more, ++j)
286286
{
287287
option& opt2 = result[j];

0 commit comments

Comments
 (0)