X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Frelational.cpp;h=4fc4e80ccbf67f6eabe29af7a5351ea1139398be;hp=d345943c26cc2bbea2157efbe0ff9894d220d0ad;hb=5d6d2c3ff6afd13933203f984a818dbfc76db3a1;hpb=d327f3f00c66a79d42855939866047b3e8caa630 diff --git a/ginac/relational.cpp b/ginac/relational.cpp index d345943c..4fc4e80c 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -3,7 +3,7 @@ * Implementation of relations between expressions */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,14 +20,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include - #include "relational.h" #include "operators.h" #include "numeric.h" #include "archive.h" #include "utils.h" +#include "hash_seed.h" + +#include +#include namespace GiNaC { @@ -259,8 +260,7 @@ return_type_t relational::return_type_tinfo() const unsigned relational::calchash() const { - const void* this_tinfo = (const void*)typeid(*this).name(); - unsigned v = golden_ratio_hash((p_int)this_tinfo); + unsigned v = make_hash_seed(typeid(*this)); unsigned lhash = lh.gethash(); unsigned rhash = rh.gethash();