From ef8218996c5a3f6674d1d49bd371c58ec814abf4 Mon Sep 17 00:00:00 2001 From: CPunch Date: Tue, 17 Nov 2020 03:38:00 -0600 Subject: [PATCH] fix clang warning --- src/ctable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ctable.c b/src/ctable.c index 60fd1cb..1adef66 100644 --- a/src/ctable.c +++ b/src/ctable.c @@ -168,11 +168,12 @@ COSMO_API CValue* cosmoT_insert(CState *state, CTable *tbl, CValue key) { // insert into the table CTableEntry *entry = findEntry(tbl->table, tbl->capacity - 1, key); // -1 for our capacity mask - if (IS_NIL(entry->key)) + if (IS_NIL(entry->key)) { if (IS_NIL(entry->val)) // is it empty? tbl->count++; else // it's a tombstone, mark it alive! tbl->tombstones--; + } entry->key = key; return &entry->val;