Author: sebor
Date: Thu Jul 17 17:11:32 2008
New Revision: 677783
URL: http://svn.apache.org/viewvc?rev=677783&view=rev
Log:
2008-07-17 Martin Sebor <[EMAIL PROTECTED]>
* test/strings/21.string.erase.cpp (test_erase): Cast actual
function arguments to the target type to silence HP aCC 6.16
remarks #4271-D: type conversion may lose sign.
Modified:
stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp
Modified: stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp?rev=677783&r1=677782&r2=677783&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp (original)
+++ stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp Thu Jul 17 17:11:32
2008
@@ -363,6 +363,8 @@
// pointer to the returned reference
const String* ret_ptr = 0;
+ typedef typename String::size_type size_type;
+
try {
switch (func.which_) {
@@ -371,11 +373,12 @@
break;
case Erase (size):
- ret_ptr = &str.erase (tcase.off);
+ ret_ptr = &str.erase (size_type (tcase.off));
break;
case Erase (size_size):
- ret_ptr = &str.erase (tcase.off, tcase.size);
+ ret_ptr = &str.erase (size_type (tcase.off),
+ size_type (tcase.size));
break;
case Erase (iter):