]> www.ginac.de Git - ginac.git/blobdiff - ginac/basic.cpp
removed unnecessary const_cast
[ginac.git] / ginac / basic.cpp
index e2bbc3cceb0d9b03ea9a8ca688c0a2c430020535..daac085617d01cb8d1c3d66077a3a82e4317c8e2 100644 (file)
@@ -696,7 +696,7 @@ unsigned basic::calchash() const
        unsigned v = golden_ratio_hash(tinfo());
        for (size_t i=0; i<nops(); i++) {
                v = rotate_left(v);
-               v ^= (const_cast<basic *>(this))->op(i).gethash();
+               v ^= this->op(i).gethash();
        }
 
        // store calculated hash value only if object is already evaluated