diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/file_group.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index d364a395d..cdd78c6a3 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -73,8 +73,6 @@ FileGroup::ensure_open_path (size_t p) const int64_t FileGroup::seek (int64_t pos, int whence) const { - int64_t const len = length (); - /* Convert pos to `full_pos', which is an offset from the start of all the files. */ @@ -91,7 +89,7 @@ FileGroup::seek (int64_t pos, int whence) const full_pos += pos; break; case SEEK_END: - full_pos = len - pos; + full_pos = length() - pos; break; } |
