]> www.ginac.de Git - ginac.git/commit
Fix elusive bug in expairseq ctor.
authorRichard Kreckel <kreckel@ginac.de>
Sat, 16 Feb 2019 11:58:38 +0000 (12:58 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 16 Feb 2019 11:58:38 +0000 (12:58 +0100)
commit3ea59519b3fa572a2aba7b8540b336dcb2924262
tree81e14eb7d6b8d8784198aa1a43d0ee067459a298
parent8cffcdf13d817a47f217f1a1043317d95969e070
Fix elusive bug in expairseq ctor.

When an expair turns out to represent a number, that should go into
the expairseq's overall_coeff. This was accomplished by class mul,
thanks to the override of expair_needs_further_processing(), but not
always for class add.

This patch fixes the base class' expair_needs_further_processing()
with similar logic as that already in place for class mul.

Thanks to Mario Prausa for reporting this.
check/exam_paranoia.cpp
ginac/expairseq.cpp