Browse Source

Update kMaxNumberType stop condition (#1978)

pull/1982/head
Keghani Kouzoujian 8 years ago
committed by GitHub
parent
commit
05bee8637c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cpp/src/phonenumbers/phonenumberutil.cc

+ 1
- 1
cpp/src/phonenumbers/phonenumberutil.cc View File

@ -298,7 +298,7 @@ void GetSupportedTypesForMetadata(
const PhoneMetadata& metadata,
std::set<PhoneNumberUtil::PhoneNumberType>* types) {
DCHECK(types);
for (int i = 0; i < static_cast<int>(PhoneNumberUtil::kMaxNumberType); ++i) {
for (int i = 0; i <= static_cast<int>(PhoneNumberUtil::kMaxNumberType); ++i) {
PhoneNumberUtil::PhoneNumberType type =
static_cast<PhoneNumberUtil::PhoneNumberType>(i);
if (type == PhoneNumberUtil::FIXED_LINE_OR_MOBILE ||


Loading…
Cancel
Save