git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7b828
)
removed unnecessary const_cast
author
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Mon, 21 Jul 2003 19:36:10 +0000
(19:36 +0000)
committer
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Mon, 21 Jul 2003 19:36:10 +0000
(19:36 +0000)
ginac/basic.cpp
patch
|
blob
|
history
diff --git
a/ginac/basic.cpp
b/ginac/basic.cpp
index e2bbc3cceb0d9b03ea9a8ca688c0a2c430020535..daac085617d01cb8d1c3d66077a3a82e4317c8e2 100644
(file)
--- a/
ginac/basic.cpp
+++ b/
ginac/basic.cpp
@@
-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