Fix for ticket #47: Use a cast to avoid a warning about discarding a "const"
inside of hash.c. (CVS 577)
FossilOrigin-Name: 0c903461533fabca7815e8cccbd3b712bcd22ddc
diff --git a/src/hash.c b/src/hash.c
index ddac9c0..0ac5419 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 @@
}
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++;