]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.cpp
Fixed problems on 64-bit machines and introduced has_options::algebraic.
[ginac.git] / ginac / constant.cpp
index 35f5ea02f308c6dc76559958d387f1663f9ce0c9..86fb55b7b462b0ec4c418185e2f1f270587caf10 100644 (file)
@@ -177,7 +177,7 @@ bool constant::is_equal_same_type(const basic & other) const
 
 unsigned constant::calchash() const
 {
-       hashvalue = golden_ratio_hash((unsigned)tinfo() ^ serial);
+       hashvalue = golden_ratio_hash((p_int)tinfo() ^ serial);
 
        setflag(status_flags::hash_calculated);