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 <[EMAIL PROTECTED]>
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)