Author: sebor
Date: Fri Jan 5 14:39:14 2007
New Revision: 493215
URL: http://svn.apache.org/viewvc?view=rev&rev=493215
Log:
2007-01-05 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-316
* valarray.cc (cshift): Initialized destination array prior
to assigning to its elements.
Modified:
incubator/stdcxx/trunk/include/valarray.cc
Modified: incubator/stdcxx/trunk/include/valarray.cc
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/valarray.cc?view=diff&rev=493215&r1=493214&r2=493215
==============================================================================
--- incubator/stdcxx/trunk/include/valarray.cc (original)
+++ incubator/stdcxx/trunk/include/valarray.cc Fri Jan 5 14:39:14 2007
@@ -6,16 +6,23 @@
*
***************************************************************************
*
- * Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0. Unless required by
- * applicable law or agreed to in writing, software distributed under
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
- * CONDITIONS OF ANY KIND, either express or implied. See the License
- * for the specific language governing permissions and limitations under
- * the License.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
@@ -56,7 +63,7 @@
if (0 == __rem)
return *this;
- _RW::__rw_array <_TypeT> __tmp (size ());
+ _RW::__rw_array<_TypeT> __tmp (_TypeT (), size ());
// 26.3.2.7, p7 - negative n rotates right, positive left
rotate_copy (_C_array.begin (),