Skip to content

Commit

Permalink
fix bad merge
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Xie <[email protected]>
  • Loading branch information
PingXie committed Jun 27, 2024
1 parent 24570ab commit 676b50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,14 +895,8 @@ void dictSetKey(dict *d, dictEntry *de, void *key) {
}

void dictSetVal(dict *d, dictEntry *de, void *val) {
<<<<<<< HEAD
void *v = d->type->valDup ? d->type->valDup(d, val) : val;
DICT_SET_VALUE(de, v.val, v);
=======
UNUSED(d);
assert(entryHasValue(de));
de->v.val = val;
>>>>>>> 8cd5fd5bae60aab334dec2147a85f390a3ba01f4
DICT_SET_VALUE(de, v.val, val);
}

void dictSetSignedIntegerVal(dictEntry *de, int64_t val) {
Expand Down
2 changes: 1 addition & 1 deletion src/listpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ unsigned char *lpInsert(unsigned char *lp,
*newp = dst;
/* In case of deletion, set 'newp' to NULL if the next element is
* the EOF element. */
if (delete &&dst[0] == LP_EOF) *newp = NULL;
if (del_ele &&dst[0] == LP_EOF) *newp = NULL;
}
if (!del_ele) {
if (enctype == LP_ENCODING_INT) {
Expand Down

0 comments on commit 676b50d

Please sign in to comment.