From commits-return-3273-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Fri Jul 18 01:24:00 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 60342 invoked from network); 18 Jul 2008 01:24:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 01:24:00 -0000 Received: (qmail 16551 invoked by uid 500); 18 Jul 2008 01:23:59 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 16532 invoked by uid 500); 18 Jul 2008 01:23:59 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 16523 invoked by uid 99); 18 Jul 2008 01:23:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 18:23:59 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 01:23:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 82EE523889FE; Thu, 17 Jul 2008 18:23:39 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r677800 - /stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp Date: Fri, 18 Jul 2008 01:23:39 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080718012339.82EE523889FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 * 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);