X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fhash.hh;h=ea63db152ad53f05bc7b3643b45437a5b13a2efc;hb=1fb5f7e36af1a4de040bc2989133703b0e0d4a9f;hp=27cc650147ab98c81a90b4a6ff57d08dab4cab66;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc;p=chaz%2Fyoink diff --git a/src/moof/hash.hh b/src/moof/hash.hh index 27cc650..ea63db1 100644 --- a/src/moof/hash.hh +++ b/src/moof/hash.hh @@ -19,7 +19,7 @@ #include -#include +#include namespace moof { @@ -39,9 +39,10 @@ struct hash_function return (*this)(val.data(), val.length()); } - unsigned operator () (int val) const + template + unsigned operator () (T val) const { - return val; + return static_cast(val); } };