stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r579025 - /incubator/stdcxx/trunk/include/valarray
Date Tue, 25 Sep 2007 00:26:18 GMT
Author: sebor
Date: Mon Sep 24 17:26:17 2007
New Revision: 579025

URL: http://svn.apache.org/viewvc?rev=579025&view=rev
Log:
2007-09-25  Dennis Handly <dhandly@cup.hp.com>

	STDCXX-237
	STDCXX-448
	* valarray (ind_numb): Returned 0 when the lengths array is empty.

Modified:
    incubator/stdcxx/trunk/include/valarray

Modified: incubator/stdcxx/trunk/include/valarray
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/valarray?rev=579025&r1=579024&r2=579025&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/valarray (original)
+++ incubator/stdcxx/trunk/include/valarray Mon Sep 24 17:26:17 2007
@@ -23,7 +23,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2007 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -2034,6 +2034,9 @@
 
 inline _RWSTD_SIZE_T gslice::ind_numb() const
 {
+    if (_C_length.size () == 0)
+        return 0;
+
     _RWSTD_SIZE_T __inx = 1;
 
     for(_RWSTD_SIZE_T __i = 0; __i < _C_length.size (); ++__i)



Mime
View raw message