aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/SelfCwiseBinaryOp.h
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-02-06 17:43:32 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-02-06 17:43:32 +0100
commit871698d3aa3e125561226a08bee9aa2db5dec6aa (patch)
tree588969399138db2bed8b54721d9740aac98951f4 /Eigen/src/Core/SelfCwiseBinaryOp.h
parent6f3f8578979b8af3d29abc8bfc17e7995bf54143 (diff)
Introduced NestParentByRefBit and NestByRefBit - this should fix temporaries related to nested products.
Fixed a few typos and a few warnings.
Diffstat (limited to 'Eigen/src/Core/SelfCwiseBinaryOp.h')
-rw-r--r--Eigen/src/Core/SelfCwiseBinaryOp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/SelfCwiseBinaryOp.h b/Eigen/src/Core/SelfCwiseBinaryOp.h
index 7ae2e82a4..c403a4f55 100644
--- a/Eigen/src/Core/SelfCwiseBinaryOp.h
+++ b/Eigen/src/Core/SelfCwiseBinaryOp.h
@@ -90,7 +90,7 @@ template<typename BinaryOp, typename MatrixType> class SelfCwiseBinaryOp
OtherDerived& _other = other.const_cast_derived();
ei_internal_assert(index >= 0 && index < m_matrix.size());
Scalar& tmp = m_matrix.coeffRef(index);
- tmp = m_functor(tmp, _other.coeff(index));
+ tmp = m_functor(tmp, Scalar(_other.coeff(index)));
}
template<typename OtherDerived, int StoreMode, int LoadMode>