From: Christian Bauer Date: Sun, 24 Aug 2003 22:49:36 +0000 (+0000) Subject: fixed typo (flags -> fl) and made the set of flags cleared by the assignment X-Git-Tag: release_1-2-0~129 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=d1e93a396ac91d762d2c9b4f2a95a25fd9abe12d fixed typo (flags -> fl) and made the set of flags cleared by the assignment operator explicit --- diff --git a/ginac/basic.cpp b/ginac/basic.cpp index 09d9b79b..73f10723 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -68,7 +68,7 @@ const basic & basic::operator=(const basic & other) // The other object is of a derived class, so clear the flags as they // might no longer apply (especially hash_calculated). Oh, and don't // copy the tinfo_key: it is already set correctly for this object. - flags = 0; + fl &= ~(status_flags::evaluated | status_flags::expanded | status_flags::hash_calculated); } else { // The objects are of the exact same class, so copy the hash value. hashvalue = other.hashvalue;