Skip to content

Commit a4cd985

Browse files
Fix a compiler warning.
1 parent aa1ec36 commit a4cd985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rugged/rugged_refdb_backend_custom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static VALUE rb_git_refdb_backend_custom_new(VALUE self, VALUE rb_repo)
9393
backend->parent.exists = &rugged_refdb_backend_custom__exists;
9494
backend->parent.compress = &rugged_refdb_backend_custom__compress;
9595
backend->parent.lookup = &rugged_refdb_backend_custom__lookup;
96-
backend->parent.free = xfree;
96+
backend->parent.free = (void (*)(git_refdb_backend *)) &xfree;
9797

9898
backend->self = Data_Wrap_Struct(self, NULL, rb_git_refdb_backend__free, backend);
9999
return backend->self;

0 commit comments

Comments
 (0)