Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 20376 invoked from network); 3 Apr 2007 22:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 22:01:57 -0000 Received: (qmail 35815 invoked by uid 500); 3 Apr 2007 22:02:04 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 35793 invoked by uid 500); 3 Apr 2007 22:02:04 -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 35772 invoked by uid 99); 3 Apr 2007 22:02:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 15:02:04 -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; Tue, 03 Apr 2007 15:01:56 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 8183D1A9838; Tue, 3 Apr 2007 15:01:36 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r525299 - /incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp Date: Tue, 03 Apr 2007 22:01:36 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070403220136.8183D1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Tue Apr 3 15:01:35 2007 New Revision: 525299 URL: http://svn.apache.org/viewvc?view=rev&rev=525299 Log: 2007-04-03 Martin Sebor * 21.string.find.last.of.cpp (TEST): Replaced NPOS with -1 to silence (the justified) gcc warning: overflow in implicit constant conversion. Modified: incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp Modified: incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp?view=diff&rev=525299&r1=525298&r2=525299 ============================================================================== --- incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp (original) +++ incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp Tue Apr 3 15:01:35 2007 @@ -207,10 +207,20 @@ cptr_size_test_cases [] = { #undef TEST -#define TEST(str, arg, off, res) \ - { __LINE__, off, NPOS, -1, -1, -1, \ - str, sizeof str - 1, arg, \ - sizeof arg - 1, 0, res, 0 \ +#define TEST(str, arg, off, res) { \ + /* int .line = */ __LINE__, \ + /* int .off = */ off, \ + /* int .size = */ -1, \ + /* int .off2 = */ -1, \ + /* int .size2 = */ -1, \ + /* int .val = */ -1, \ + /* const char* .str = */ str, \ + /* size_t .str_len = */ sizeof str - 1, \ + /* const char* .arg = */ arg, \ + /* size_t .arg_len = */ sizeof arg - 1, \ + /* const char* .res = */ 0, \ + /* size_t .nres = */ res, \ + /* int .bthrow = */ 0 \ } // +-------------------------------------- controlled sequence