diff --git a/compaction_filter.go b/compaction_filter.go
index <HASH>..<HASH> 100644
--- a/compaction_filter.go
+++ b/compaction_filter.go
@@ -26,8 +26,8 @@ type CompactionFilter interface {
 }
 
 // NewNativeCompactionFilter creates a CompactionFilter object.
-func NewNativeCompactionFilter(c *C.rocksdb_comparator_t) Comparator {
-	return nativeComparator{c}
+func NewNativeCompactionFilter(c *C.rocksdb_compactionfilter_t) CompactionFilter {
+	return nativeCompactionFilter{c}
 }
 
 type nativeCompactionFilter struct {
return a CompactionFilter instead of a Comparator in NewNativeCompactionFilter

Fixes #<I>