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>
This commit is contained in:
parent
6f5748e14c
commit
c83f4e6864
@ -3277,7 +3277,7 @@ sub _rev_map_get {
|
|||||||
my $i = int(($l/24 + $u/24) / 2) * 24;
|
my $i = int(($l/24 + $u/24) / 2) * 24;
|
||||||
sysseek($fh, $i, SEEK_SET) or croak "seek: $!";
|
sysseek($fh, $i, SEEK_SET) or croak "seek: $!";
|
||||||
sysread($fh, my $buf, 24) == 24 or croak "read: $!";
|
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) {
|
if ($r < $rev) {
|
||||||
$l = $i + 24;
|
$l = $i + 24;
|
||||||
|
Loading…
Reference in New Issue
Block a user