]> www.ginac.de Git - ginac.git/blobdiff - ginac/basic.cpp
- implemented nops() and op() for pseries objects
[ginac.git] / ginac / basic.cpp
index b632a6e3f08064bf6af3305958b4fa4baa8bd6e3..4f4fdbfb345c42eaf33adcef006d38b0552ecbbb 100644 (file)
@@ -324,7 +324,7 @@ unsigned basic::calchash(void) const
     unsigned v=golden_ratio_hash(tinfo());
     for (unsigned i=0; i<nops(); i++) {
         v=rotate_left_31(v);
-        v ^= (const_cast<basic *>(this))->let_op(i).gethash();
+        v ^= (const_cast<basic *>(this))->op(i).gethash();
     }
 
     v = v & 0x7FFFFFFFU;