From 8b70b78ba489b090d9866e6a4084ab1e8613b527 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Nov 2003 20:21:15 +0000 Subject: Fixes for PR114: Thanks to Reid Spencer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/HashExtras.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/Support/HashExtras.h') diff --git a/include/Support/HashExtras.h b/include/Support/HashExtras.h index 871080c..67f65b5 100644 --- a/include/Support/HashExtras.h +++ b/include/Support/HashExtras.h @@ -31,7 +31,9 @@ template <> struct hash { // Provide a hash function for arbitrary pointers... template struct hash { - inline size_t operator()(const T *Val) const { return (size_t)Val; } + inline size_t operator()(const T *Val) const { + return reinterpret_cast(Val); + } }; } // End namespace std -- cgit v1.1