stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r449094 - /incubator/stdcxx/trunk/util/def.cpp
Date Fri, 22 Sep 2006 21:17:10 GMT
Author: sebor
Date: Fri Sep 22 14:17:09 2006
New Revision: 449094

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

	* def.cpp (strip_pair): Eliminated HP aCC Warning (suggestion) 887:
	Type 'int' is smaller than type 'unsigned long', unwanted widening
	in value may result.

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

Modified: incubator/stdcxx/trunk/util/def.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/def.cpp?view=diff&rev=449094&r1=449093&r2=449094
==============================================================================
--- incubator/stdcxx/trunk/util/def.cpp (original)
+++ incubator/stdcxx/trunk/util/def.cpp Fri Sep 22 14:17:09 2006
@@ -221,7 +221,8 @@
 void Def::strip_pair (const std::string &tok, std::string &sym,
                       std::string &sym2)
 {
-    int i = 0;
+    std::size_t i = 0;
+
     if(tok[i] == '(') {
         if(tok[++i] == '<')
             while (tok[i] != '>'){



Mime
View raw message