Skip to content

Commit

Permalink
svn: (cleanup) use predefined constant for rev_map_fmt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong committed Aug 13, 2009
1 parent 6f5748e commit c83f4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -3277,7 +3277,7 @@ sub _rev_map_get {
my $i = int(($l/24 + $u/24) / 2) * 24;
sysseek($fh, $i, SEEK_SET) or croak "seek: $!";
sysread($fh, my $buf, 24) == 24 or croak "read: $!";
my ($r, $c) = unpack('NH40', $buf);
my ($r, $c) = unpack(rev_map_fmt, $buf);

if ($r < $rev) {
$l = $i + 24;
Expand Down

0 comments on commit c83f4e6

Please sign in to comment.