diff options
author | drh <drh@noemail.net> | 2002-05-21 23:44:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-05-21 23:44:30 +0000 |
commit | 2ce1a6ec60b9df603c7c20d9c93b86cc8754b334 (patch) | |
tree | 57d9f3c67c950b896fef4cb30e95fc8aa04d884f /src/hash.c | |
parent | 2398937b7f408e955ab5b2644db9d59883ebc055 (diff) | |
download | sqlite-2ce1a6ec60b9df603c7c20d9c93b86cc8754b334.tar.gz sqlite-2ce1a6ec60b9df603c7c20d9c93b86cc8754b334.zip |
Fix for ticket #47: Use a cast to avoid a warning about discarding a "const"
inside of hash.c. (CVS 577)
FossilOrigin-Name: 0c903461533fabca7815e8cccbd3b712bcd22ddc
Diffstat (limited to 'src/hash.c')
-rw-r--r-- | src/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c index ddac9c048..0ac54196c 100644 --- a/src/hash.c +++ b/src/hash.c @@ -12,7 +12,7 @@ ** This is the implementation of generic hash-tables ** used in SQLite. ** -** $Id: hash.c,v 1.7 2002/02/23 23:45:45 drh Exp $ +** $Id: hash.c,v 1.8 2002/05/21 23:44:30 drh Exp $ */ #include "sqliteInt.h" #include <assert.h> @@ -320,7 +320,7 @@ void *sqliteHashInsert(Hash *pH, const void *pKey, int nKey, void *data){ } memcpy((void*)new_elem->pKey, pKey, nKey); }else{ - new_elem->pKey = (const void*)pKey; + new_elem->pKey = (void*)pKey; } new_elem->nKey = nKey; pH->count++; |