stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r450563 - /incubator/stdcxx/trunk/util/charmap.cpp
Date Wed, 27 Sep 2006 20:23:08 GMT
Author: sebor
Date: Wed Sep 27 13:23:07 2006
New Revision: 450563

URL: http://svn.apache.org/viewvc?view=rev&rev=450563
Log:
2006-09-27  Martin Sebor  <sebor@roguewave.com>

	* charmap.cpp (convert_sym_to_ucs): Parenthesized a call
	to isxdigit to prevent macro expansion.
	(process_ellipsis): Corrected a loop control expression.

Modified:
    incubator/stdcxx/trunk/util/charmap.cpp

Modified: incubator/stdcxx/trunk/util/charmap.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/charmap.cpp?view=diff&rev=450563&r1=450562&r2=450563
==============================================================================
--- incubator/stdcxx/trunk/util/charmap.cpp (original)
+++ incubator/stdcxx/trunk/util/charmap.cpp Wed Sep 27 13:23:07 2006
@@ -633,7 +633,7 @@
     std::string::const_iterator it (sym.begin ());
 
     if (   sym.size () < 4 || *it != '<' || *++it != 'U'
-        || !isxdigit (*++it)) {
+        || !(std::isxdigit)(*++it)) {
         issue_diag (E_UCS, true, 0,
                     "Unable to convert symbolic name %s to UCS.\n",
                     sym.c_str ());
@@ -831,7 +831,7 @@
     }
     else {
         // advance to the next dec digit
-        while (idx < end_len && (std::isdigit)(end_tok.name [idx]))
+        while (idx < end_len && !(std::isdigit)(end_tok.name [idx]))
             ++idx;
     }
 



Mime
View raw message