Commit c6c6c0bdc5e7d05a00104b68da9905f4dc730390

Colin Stolley 2022-01-13T17:20:14

Update src/refdb_fs.c Co-authored-by: Edward Thomson <ethomson@github.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 3317d6b..c9b0da7 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -138,7 +138,7 @@ static int packed_reload(refdb_fs_backend *backend)
 
 	GIT_UNUSED(git_sortedcache_clear(backend->refcache, false));
 
-	scan = (char *)packedrefs.ptr;
+	scan = packedrefs.ptr;
 	eof  = scan + packedrefs.size;
 
 	scan = packed_set_peeling_mode(scan, packedrefs.size, backend);