You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/19 01:30:06 UTC
svn commit: r577106 -
/incubator/stdcxx/trunk/tests/strings/21.string.cons.cpp
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 <se...@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):