summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-23 12:37:15 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-23 12:37:15 +0000
commit10f55bf3a2ac9340263a410fa2a69f1360f5c227 (patch)
treec394c1142b6796badf37bd1791d3520363ab96af /src/lib
parentd302d45c2102b8fc97bbd256b43fa74119cc9332 (diff)
Small FileGroup tidy-up; actually build FileGroup test; rearrange test wscript.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/file_group.cc4
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;
}