From deb91599e2bd8aa756f6810249f7c31875b6267f Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 12 Sep 2008 18:41:23 +0000 Subject: [PATCH] Avoid confusing the compiler by explicitly casting the zero to its intended data type. git-svn-id: https://svn.dealii.org/trunk@16822 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 014610859d..dcb6f37068 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -935,7 +935,7 @@ void Vector::reinit (const unsigned int n, const bool fast) }; vec_size = n; if (fast == false) - *this = 0; + *this = static_cast(0); } -- 2.39.5