From 8016b07f786bbac1c31822932d461d1b274ddbcd Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 12 Sep 2015 01:42:34 -0500 Subject: [PATCH] Bugfix: Be consistent and cast to const Number & --- include/deal.II/base/tensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 679909871a..cb1de1852c 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1288,7 +1288,7 @@ Tensor<0,dim,typename ProductType::type, Nu operator * (const OtherNumber factor, const Tensor<0,dim,Number> &t) { - return factor * static_cast(t); + return factor * static_cast(t); } @@ -1304,7 +1304,7 @@ Tensor<0,dim,typename ProductType:: operator * (const Tensor<0,dim,Number> &t, const OtherNumber factor) { - return static_cast(t) * factor; + return static_cast(t) * factor; } -- 2.39.5