Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 8035 invoked from network); 10 Apr 2007 00:06:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 00:06:35 -0000 Received: (qmail 66043 invoked by uid 500); 10 Apr 2007 00:06:42 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 66021 invoked by uid 500); 10 Apr 2007 00:06:42 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 66009 invoked by uid 99); 10 Apr 2007 00:06:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 17:06:42 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 17:06:34 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id E05101A9838; Mon, 9 Apr 2007 17:06:13 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r526961 - in /incubator/stdcxx/trunk/tests/strings: 21.string.access.cpp 21.string.append.cpp Date: Tue, 10 Apr 2007 00:06:13 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070410000613.E05101A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Mon Apr 9 17:06:12 2007 New Revision: 526961 URL: http://svn.apache.org/viewvc?view=rev&rev=526961 Log: 2007-04-09 Martin Sebor * 21.string.access.cpp (test_access): Cast an argument to a (potentially) wider type to silence the pesky HP aCC 3.73 Warning (suggestion) 887: Type T is smaller than type U, unwanted widening in value may result. * 21.string.append.cpp (test_append): Same. Modified: incubator/stdcxx/trunk/tests/strings/21.string.access.cpp incubator/stdcxx/trunk/tests/strings/21.string.append.cpp Modified: incubator/stdcxx/trunk/tests/strings/21.string.access.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.access.cpp?view=diff&rev=526961&r1=526960&r2=526961 ============================================================================== --- incubator/stdcxx/trunk/tests/strings/21.string.access.cpp (original) +++ incubator/stdcxx/trunk/tests/strings/21.string.access.cpp Mon Apr 9 17:06:12 2007 @@ -202,6 +202,7 @@ const StringTestCase &tcase) { typedef std::basic_string String; + typedef typename String::size_type SizeT; static const std::size_t BUFSIZE = 256; @@ -238,19 +239,19 @@ switch (func.which_) { case OpIndex (size): - pres = &str [tcase.off]; + pres = &str [SizeT (tcase.off)]; break; case OpIndex (const_size): - pres = &const_str [tcase.off]; + pres = &const_str [SizeT (tcase.off)]; break; case At (size): - pres = &str.at (tcase.off); + pres = &str.at (SizeT (tcase.off)); break; case At (const_size): - pres = &const_str.at (tcase.off); + pres = &const_str.at (SizeT (tcase.off)); break; default: Modified: incubator/stdcxx/trunk/tests/strings/21.string.append.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.append.cpp?view=diff&rev=526961&r1=526960&r2=526961 ============================================================================== --- incubator/stdcxx/trunk/tests/strings/21.string.append.cpp (original) +++ incubator/stdcxx/trunk/tests/strings/21.string.append.cpp Mon Apr 9 17:06:12 2007 @@ -569,6 +569,7 @@ const StringTestCaseData &tdata) { typedef std::basic_string String; + typedef typename String::size_type SizeT; typedef typename String::iterator StringIter; typedef typename UserTraits::MemFun TraitsFunc; @@ -660,7 +661,8 @@ break; case Append (cstr_size_size): - ret_ptr = &str.append (str_arg, tcase.off2, tcase.size2); + ret_ptr = &str.append (str_arg, + SizeT (tcase.off2), SizeT (tcase.size2)); break; case Append (size_val):