container.pl: can now generate constructors for an arbitary number
[ginac.git] / ginac / numeric.cpp
index 21562de9ab74c3d77b90f6f8b123fe642d9a9b10..be9df1cf7ffd4532d802a54cc05bac56a4b0b003 100644 (file)
@@ -608,6 +608,16 @@ bool numeric::is_equal_same_type(const basic & other) const
     return this->is_equal(*o);
 }
 
+unsigned numeric::calchash(void) const
+{
+    return (hashvalue=cl_equal_hashcode(*value) | 0x80000000U);
+    /*
+    cout << *value << "->" << hashvalue << endl;
+    hashvalue=HASHVALUE_NUMERIC+1000U;
+    return HASHVALUE_NUMERIC+1000U;
+    */
+}
+
 /*
 unsigned numeric::calchash(void) const
 {