]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.cpp
lsts are not shareable by default
[ginac.git] / ginac / ex.cpp
index 1af7f214efa49d76340d78fe8ae0ac679e179f09..4a41ea8f00ae59c50b0cc3591db309fa2d5fae03 100644 (file)
@@ -246,7 +246,7 @@ void ex::makewriteable()
  *  @see ex::compare(const basic &) */
 void ex::share(const ex & other) const
 {
-       if ((bp->flags & status_flags::not_shareable) || (other.bp->flags & status_flags::not_shareable))
+       if ((bp->flags | other.bp->flags) & status_flags::not_shareable)
                return;
 
        if (bp->refcount <= other.bp->refcount)