Update src/refdb_fs.c Co-authored-by: Edward Thomson <ethomson@github.com>
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 6b79073..4d01adf 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -651,7 +651,7 @@ static int packed_lookup(
return packed_unsorted_lookup(out, backend, ref_name);
left = backend->packed_refs_map.data;
- right = data_end = ((const char *)backend->packed_refs_map.data) +
+ right = data_end = backend->packed_refs_map.data +
backend->packed_refs_map.len;
while (left < right && *left == '#') {