]> www.ginac.de Git - ginac.git/blobdiff - ginac/idx.cpp
Fixed warning on 64bit machines.
[ginac.git] / ginac / idx.cpp
index 9211294b5cefc124d0cffe59ccbf44422c30ac6b..73af6aac1333e588b6b05bcc5b7e9bdf3c19c37c 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();
 
@@ -365,7 +365,7 @@ ex idx::subs(const exmap & m, unsigned options) const
        if (it != m.end()) {
 
                // Substitution index->index
-               if (is_a<idx>(it->second))
+               if (is_a<idx>(it->second) || (options & subs_options::really_subs_idx))
                        return it->second;
 
                // Otherwise substitute value