[GiNaC-devel] pseries patch
Richard B. Kreckel
kreckel at ginac.de
Mon Feb 12 23:19:11 CET 2007
Hi!
Vladimir Kisil wrote:
>/home/amsta/kisilv/GiNaC
>Index: ginac/pseries.cpp
>===================================================================
>RCS file: /home/cvs/GiNaC/ginac/pseries.cpp,v
>retrieving revision 1.90
>diff -u -r1.90 pseries.cpp
>--- ginac/pseries.cpp 31 Jan 2007 22:29:20 -0000 1.90
>+++ ginac/pseries.cpp 12 Feb 2007 01:02:56 -0000
>@@ -1072,7 +1072,11 @@
> }
> const ex& sym = r.lhs();
> // find existing minimal degree
>- int real_ldegree = basis.expand().ldegree(sym-r.rhs());
>+ int real_ldegree;
>+ try {
>+ real_ldegree = basis.expand().ldegree(sym-r.rhs());
>+ } catch (std::runtime_error) { }
>+
> if (real_ldegree == 0) {
> int orderloop = 0;
> do {
>
>
Vladimir, what've you been smoking?!? That variable is uninitialized, now.
Cheers
-richy.
--
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>
More information about the GiNaC-devel
mailing list