X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fhash_seed.h;h=9b163cf86010952ab40289682763657228842ef2;hp=c0fb4b8904c0c247311d35c799207474bbcff1f8;hb=227c0507d513360c31cd16484e08215e1a506363;hpb=319c9533e12eba2449001c47545e3c3cf48c482f;ds=sidebyside diff --git a/ginac/hash_seed.h b/ginac/hash_seed.h index c0fb4b89..9b163cf8 100644 --- a/ginac/hash_seed.h +++ b/ginac/hash_seed.h @@ -38,7 +38,7 @@ static inline unsigned make_hash_seed(const std::type_info& tinfo) // This pointer is the same for all objects of the same type. // Hence we can use it. const void* mangled_name_ptr = (const void*)tinfo.name(); - unsigned v = golden_ratio_hash((p_int)mangled_name_ptr); + unsigned v = golden_ratio_hash((uintptr_t)mangled_name_ptr); return v; } #else