]> www.ginac.de Git - ginac.git/blobdiff - ginac/idx.cpp
Fixed problems on 64-bit machines and introduced has_options::algebraic.
[ginac.git] / ginac / idx.cpp
index 9211294b5cefc124d0cffe59ccbf44422c30ac6b..e531f0f3299636d102fd4ff1f41fed0a7656bf82 100644 (file)
@@ -338,7 +338,7 @@ unsigned idx::calchash() const
        // hash keys. That is, the hash values must not depend on the index
        // dimensions or other attributes (variance etc.).
        // The compare_same_type() methods will take care of the rest.
-       unsigned v = golden_ratio_hash((unsigned)tinfo());
+       unsigned v = golden_ratio_hash((p_int)tinfo());
        v = rotate_left(v);
        v ^= value.gethash();