From 1acadaea2a80886aac7afa758d9b250880b6f186 Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Mon, 9 Aug 2004 18:32:56 +0000 Subject: [PATCH] Synced to HEAD --- ginac/pseries.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 443969c1..993eacf1 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -971,7 +971,12 @@ ex power::series(const relational & r, int order, unsigned options) const // No, expand basis into series - numeric numexp = ex_to(exponent); + numeric numexp; + if (is_a(exponent)) { + numexp = ex_to(exponent); + } else { + numexp = 0; + } const ex& sym = r.lhs(); // find existing minimal degree int real_ldegree = basis.expand().ldegree(sym-r.rhs()); -- 2.47.0