mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1247: fix regression in compilation of pow(integer,integer), and add respective unit tests.
This commit is contained in:
@@ -510,7 +510,7 @@ template<typename ScalarX,typename ScalarY>
|
||||
struct pow_impl<ScalarX,ScalarY, true>
|
||||
{
|
||||
typedef ScalarX result_type;
|
||||
static EIGEN_DEVICE_FUNC inline ScalarX run(const ScalarX &x, const ScalarY &y)
|
||||
static EIGEN_DEVICE_FUNC inline ScalarX run(ScalarX x, ScalarY y)
|
||||
{
|
||||
ScalarX res(1);
|
||||
eigen_assert(!NumTraits<ScalarY>::IsSigned || y >= 0);
|
||||
|
||||
Reference in New Issue
Block a user