From d1e93a396ac91d762d2c9b4f2a95a25fd9abe12d Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Sun, 24 Aug 2003 22:49:36 +0000 Subject: [PATCH 1/1] fixed typo (flags -> fl) and made the set of flags cleared by the assignment operator explicit --- ginac/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.0