fixed bad io bug reading constant polynomials at end of file

This commit is contained in:
Daniel Russel 2006-04-05 16:13:35 +00:00
parent 013ce68ed5
commit e19a67e2ee
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ public:
NT coef; NT coef;
// eat // eat
in >> coef; in >> coef;
if (!in.good()) return; if (in.fail()) return;
unsigned int pow; unsigned int pow;
char p= in.peek(); char p= in.peek();
if (in.peek() =='*') { if (in.peek() =='*') {