use normal conditional

pull/10555/head
Josh Humphries 3 years ago
parent f82be68831
commit d6acffba7b
  1. 11
      src/google/protobuf/io/tokenizer.cc

@ -1003,11 +1003,12 @@ bool Tokenizer::ParseInteger(const std::string& text, uint64_t max_value,
double Tokenizer::ParseFloat(const std::string& text) {
double result;
GOOGLE_LOG_IF(DFATAL,
!TryParseFloat(text, &result))
<< " Tokenizer::ParseFloat() passed text that could not have been"
" tokenized as a float: "
<< absl::CEscape(text);
if (!TryParseFloat(text, &result)) {
LOG(DFATAL)
<< " Tokenizer::ParseFloat() passed text that could not have been"
" tokenized as a float: "
<< absl::CEscape(text);
}
return result;
}

Loading…
Cancel
Save