瀏覽代碼

Update common.h

blueloveTH 1 年之前
父節點
當前提交
fec9a3e621
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
     }
 
-    i64 hash() const { return _1; }
+    i64 hash() const { return _0 + _1; }
 
     template<typename T>
     obj_get_t<T> obj_get();