X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fhash.hh;h=ea63db152ad53f05bc7b3643b45437a5b13a2efc;hp=27cc650147ab98c81a90b4a6ff57d08dab4cab66;hb=1da520638918096276158ecdfaeebc14a3d70be7;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc 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); } };