Commit 90b3e7ad authored by Xiang Li's avatar Xiang Li

use uint64_t instead of size_t to make sure 64-bit return value (Mv hash was missed)

parent dfd0c672
......@@ -285,9 +285,9 @@ public:
namespace std
{
template <>
struct hash<Mv> : public unary_function<Mv, size_t>
struct hash<Mv> : public unary_function<Mv, uint64_t>
{
size_t operator()(const Mv& value) const
uint64_t operator()(const Mv& value) const
{
return (((uint64_t)value.hor << 32) + value.ver);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment