Skip to content

Commit c83f4e6

Browse files
author
Eric Wong
committed
svn: (cleanup) use predefined constant for rev_map_fmt
This makes life easier in case we ever need to change the internal format of the rev_maps. Signed-off-by: Eric Wong <normalperson@yhbt.net>
1 parent 6f5748e commit c83f4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3277,7 +3277,7 @@ sub _rev_map_get {
32773277
my $i = int(($l/24 + $u/24) / 2) * 24;
32783278
sysseek($fh, $i, SEEK_SET) or croak "seek: $!";
32793279
sysread($fh, my $buf, 24) == 24 or croak "read: $!";
3280-
my ($r, $c) = unpack('NH40', $buf);
3280+
my ($r, $c) = unpack(rev_map_fmt, $buf);
32813281

32823282
if ($r < $rev) {
32833283
$l = $i + 24;

0 commit comments

Comments
 (0)