From: Matthias Maier Date: Sat, 12 Sep 2015 06:42:34 +0000 (-0500) Subject: Bugfix: Be consistent and cast to const Number & X-Git-Tag: v8.4.0-rc2~435^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8016b07f786bbac1c31822932d461d1b274ddbcd;p=dealii.git Bugfix: Be consistent and cast to const Number & --- 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; }