17 Sep
2007
17 Sep
'07
5:03 p.m.
--- ginac/power.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ginac/power.cpp b/ginac/power.cpp index 676b862..bbcb453 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -916,7 +916,7 @@ ex power::expand_mul(const mul & m, const numeric & n, unsigned options, bool fr } // Leave it to multiplication since dummy indices have to be renamed - if (get_all_dummy_indices(m).size() > 0 && n.is_positive()) { + if (m.info(info_flags::has_indices) && (get_all_dummy_indices(m).size() > 0) && n.is_positive()) { ex result = m; for (int i=1; i < n.to_int(); i++) result *= rename_dummy_indices_uniquely(m,m); -- 1.5.2.4 Best regards, Alexei -- All science is either physics or stamp collecting.