stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r577106 - /incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp
Date Tue, 18 Sep 2007 23:30:06 GMT
Author: sebor
Date: Tue Sep 18 16:30:05 2007
New Revision: 577106

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

	* 21.string.cons.cpp (test_cons): Used argument of the appropriate
	type to silence HP aCC pedantic Warning (suggestion) 887: Type 'int'
	is smaller than type 'unsigned long', unwanted widening in value may
	result.

Modified:
    incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp

Modified: incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp?rev=577106&r1=577105&r2=577106&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp Tue Sep 18 16:30:05 2007
@@ -699,11 +699,11 @@
             break;
 
         case Cons (size_val):
-            ret_ptr = new String (tcase.size, arg_val);
+            ret_ptr = new String (arg_size, arg_val);
             break;
 
         case Cons (size_val_alloc):
-            ret_ptr = new String (tcase.size, arg_val, arg_alc);
+            ret_ptr = new String (arg_size, arg_val, arg_alc);
             break;
 
         case Cons (range):



Mime
View raw message