Skip to content

Commit

Permalink
Fix signed/unsigned mismatch warning on gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Jul 14, 2015
1 parent b61bf56 commit eb1a197
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ namespace boost { namespace spirit { namespace qi { namespace detail
if (!Accumulate)
{
// skip leading zeros
while (it != last && *it == '0' && leading_zeros < MaxDigits)
while (it != last && *it == '0' && (MaxDigits < 0 || leading_zeros < static_cast< std::size_t >(MaxDigits)))
{
++it;
++leading_zeros;
Expand Down

0 comments on commit eb1a197

Please sign in to comment.