locale_facets.tcc (num_get<>::do_get): Avoid warning about ambiguous else.

2007-02-13  Dirk Mueller  <dmueller@suse.de>

       * include/bits/locale_facets.tcc (num_get<>::do_get): Avoid
       warning about ambiguous else.

From-SVN: r121881
This commit is contained in:
Dirk Mueller 2007-02-13 10:13:04 +00:00 committed by Dirk Mueller
parent 7a23933bdd
commit 9e0b7527be
2 changed files with 17 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2007-02-13 Dirk Mueller <dmueller@suse.de>
* include/bits/locale_facets.tcc (num_get<>::do_get): Avoid
warning about ambiguous else.
2007-02-12 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/21172

View File

@ -746,16 +746,20 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
const char_type __c = *__beg;
if (__testf)
if (__n < __lc->_M_falsename_size)
__testf = __c == __lc->_M_falsename[__n];
else
break;
{
if (__n < __lc->_M_falsename_size)
__testf = __c == __lc->_M_falsename[__n];
else
break;
}
if (__testt)
if (__n < __lc->_M_truename_size)
__testt = __c == __lc->_M_truename[__n];
else
break;
{
if (__n < __lc->_M_truename_size)
__testt = __c == __lc->_M_truename[__n];
else
break;
}
if (!__testf && !__testt)
break;