X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffunction.pl;fp=ginac%2Ffunction.pl;h=e1533be27aba0d57cd126b8ae27cb02f719479ec;hp=31f8ba5ecf3c02ee620eb0105ee23a5c10717926;hb=ee1ec9db30b446d2d6348df2ce758ed2ff62a310;hpb=4cf514ec7a3d8dbb447eaa46747f31a9fc9cf159 diff --git a/ginac/function.pl b/ginac/function.pl index 31f8ba5e..e1533be2 100644 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -603,6 +603,7 @@ $implementation=< @@ -1062,8 +1063,7 @@ ex function::eval_ncmul(const exvector & v) const unsigned function::calchash() const { - const void* this_tinfo = (const void*)typeid(*this).name(); - unsigned v = golden_ratio_hash(golden_ratio_hash((p_int)this_tinfo) ^ serial); + unsigned v = golden_ratio_hash(make_hash_seed(typeid(*this)) ^ serial); for (size_t i=0; iop(i).gethash();