to add parentheses to satisfy clang

This commit is contained in:
Cameron T. Druyor 2016-04-30 12:30:36 -04:00
parent f115199290
commit 31493c39b0
2 changed files with 3 additions and 3 deletions

View File

@ -8160,7 +8160,7 @@ basic_json_parser_63:
// remember this number was parsed (for later serialization)
result.m_type.bits.parsed = true;
// 'found_radix_point' will be set to 0xFF upon finding a radix
// 'found_radix_point' will be set to true upon finding a radix
// point. if it is not found, then the precision will be updated
bool found_radix_point = false;
uint8_t precision = 0;
@ -8251,7 +8251,7 @@ basic_json_parser_63:
auto c = *(m_start+j);
if(c == '0')
++trailing_zeros;
else if(c > '0' and c <= '9' or c == '-')
else if((c > '0' and c <= '9') or c == '-')
break;
else
throw std::logic_error("unexpected character: "+std::to_string(c));

View File

@ -7938,7 +7938,7 @@ class basic_json
auto c = *(m_start+j);
if(c == '0')
++trailing_zeros;
else if(c > '0' and c <= '9' or c == '-')
else if((c > '0' and c <= '9') or c == '-')
break;
else
throw std::logic_error("unexpected character: "+std::to_string(c));