diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-13 15:16:10 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-13 15:16:10 -0800 |
commit | 686d38d66754027cd29c64f1dc2975248eab7796 (patch) | |
tree | 435569e7bdd7f2ead5c4e8584cfaf06e206ab3f4 /src/misc/hash | |
parent | 8acd4edd5ade4f8836ddae292d45cdfedcb3a30c (diff) | |
download | abc-686d38d66754027cd29c64f1dc2975248eab7796.tar.gz abc-686d38d66754027cd29c64f1dc2975248eab7796.tar.bz2 abc-686d38d66754027cd29c64f1dc2975248eab7796.zip |
Changes to enable C++ compilation after recent modifications.
Diffstat (limited to 'src/misc/hash')
-rw-r--r-- | src/misc/hash/hashGen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/hash/hashGen.h b/src/misc/hash/hashGen.h index 257b9dba..fc1b82c3 100644 --- a/src/misc/hash/hashGen.h +++ b/src/misc/hash/hashGen.h @@ -229,7 +229,7 @@ static inline void Hash_GenWriteEntry( Hash_Gen_t *p, void * key, void * data ) p->nSize++; (*pLast) = pEntry = ABC_ALLOC( Hash_Gen_Entry_t, 1 ); pEntry->pNext = NULL; - pEntry->key = key; + pEntry->key = (char *)key; pEntry->data = data; return; @@ -271,7 +271,7 @@ static inline Hash_Gen_Entry_t * Hash_GenEntry( Hash_Gen_t *p, void * key, int f p->nSize++; (*pLast) = pEntry = ABC_ALLOC( Hash_Gen_Entry_t, 1 ); pEntry->pNext = NULL; - pEntry->key = key; + pEntry->key = (char *)key; pEntry->data = NULL; return pEntry; } |