diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index 76043534d..ee0305170 100644 --- a/Source/kwsys/hashtable.hxx.in +++ b/Source/kwsys/hashtable.hxx.in @@ -83,7 +83,11 @@ namespace @KWSYS_NAMESPACE@ // Utility functions to convert item counts. inline size_t hash_sizeof(void*) { return sizeof(char); } inline size_t hash_sizeof(const void*) { return sizeof(char); } -template inline size_t hash_sizeof(TPtr p) { return sizeof(*p); } +template inline size_t hash_sizeof(TPtr p) +{ + static_cast(p); + return sizeof(*p); +} template inline TSize hash_allocator_n(POut out, PIn in, TSize n) {