From: Clifford Wolf Date: Sun, 14 Feb 2016 08:35:25 +0000 (+0100) Subject: Fixed more visual studio warnings X-Git-Tag: yosys-0.6~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c4b311242f5ce61a6ae4374e490f5ad1524e5ad;p=yosys.git Fixed more visual studio warnings --- diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 972a8b8d8..280b1693f 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -95,9 +95,7 @@ template struct hash_ops> { return a == b; } static inline unsigned int hash(std::pair a) { - hash_ops

p_ops; - hash_ops q_ops; - return mkhash(p_ops.hash(a.first), q_ops.hash(a.second)); + return mkhash(hash_ops

::hash(a.first), hash_ops::hash(a.second)); } }; @@ -111,8 +109,8 @@ template struct hash_ops> { } template static inline typename std::enable_if::type hash(std::tuple a) { - hash_ops>::type> element_ops; - return mkhash(hash(a), element_ops.hash(std::get(a))); + typedef hash_ops>::type> element_ops_t; + return mkhash(hash(a), element_ops_t::hash(std::get(a))); } };