blueloveTH 1 anno fa
parent
commit
fec9a3e621
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      include/pocketpy/common.h

+ 1 - 1
include/pocketpy/common.h

@@ -242,7 +242,7 @@ struct PyVar final{
         return reinterpret_cast<PyObject*>(_1);
         return reinterpret_cast<PyObject*>(_1);
     }
     }
 
 
-    i64 hash() const { return _1; }
+    i64 hash() const { return _0 + _1; }
 
 
     template<typename T>
     template<typename T>
     obj_get_t<T> obj_get();
     obj_get_t<T> obj_get();