Silence warnings for free()s

This commit is contained in:
2022-10-27 16:53:26 -04:00
parent d81d8c5156
commit fd91e66b8a

View File

@@ -57,11 +57,11 @@ void nl_object_delete(struct nl_object *obj) {
obj->cell.cdr = NULL;
break;
case NL_TYPE_SYMBOL:
free(obj->symbol);
free((void *) obj->symbol);
obj->symbol = NULL;
break;
case NL_TYPE_STRING:
free(obj->string);
free((void *) obj->string);
obj->string = NULL;
case NL_TYPE_INT:
case NL_TYPE_COUNT: