Commit d86b9f7990091bcdb6aec2c71c35e9afb728fbfd

Colin Stolley 2022-01-13T17:23:01

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 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 == '#') {