mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix for ticket #47: Use a cast to avoid a warning about discarding a "const"
inside of hash.c. (CVS 577) FossilOrigin-Name: 0c903461533fabca7815e8cccbd3b712bcd22ddc
This commit is contained in:
@ -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++;
|
||||
|
Reference in New Issue
Block a user