Author: sebor Date: Thu Jul 17 18:23:39 2008 New Revision: 677800 URL: http://svn.apache.org/viewvc?rev=677800&view=rev Log: 2008-07-17 Martin Sebor <[EMAIL PROTECTED]>
* tests/containers/23.deque.modifiers.cpp (exception_loop): Converted a signed int to size_type to silence HP aCC 6 remark #4271-D: type conversion may lose sign. Modified: stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp Modified: stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp?rev=677800&r1=677799&r2=677800&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp (original) +++ stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp Thu Jul 17 18:23:39 2008 @@ -22,7 +22,7 @@ * implied. See the License for the specific language governing * permissions and limitations under the License. * - * Copyright 1994-2006 Rogue Wave Software. + * Copyright 1994-2008 Rogue Wave Software, Inc. * **************************************************************************/ @@ -190,10 +190,15 @@ _TRY { + // convert an int to size_type to avoid conversion + // warnings when passing it to member functions + // that expect an unsigned argument + const Deque::size_type nelems (n); + switch (mfun) { case Assign_n: _RWSTD_ASSERT (x); - deq.assign (n, *x); + deq.assign (nelems, *x); break; case AssignRange: deq.assign (first, last); @@ -214,7 +219,7 @@ break; case Insert_n: _RWSTD_ASSERT (x); - deq.insert (it, n, *x); + deq.insert (it, nelems, *x); break; case InsertRange: deq.insert (it, first, last);