diff --git a/src/ctable.c b/src/ctable.c index 1fca3da..90f8c31 100644 --- a/src/ctable.c +++ b/src/ctable.c @@ -69,6 +69,8 @@ static uint32_t getObjectHash(CObj *obj) switch (obj->type) { case COBJ_STRING: return ((CObjString *)obj)->hash; + case COBJ_CFUNCTION: + return (uint32_t)((CObjCFunction *)obj)->cfunc; default: return (uint32_t)obj; // just "hash" the pointer }