diff options
Diffstat (limited to 'src/main/extractor_datasource.c')
-rw-r--r-- | src/main/extractor_datasource.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/extractor_datasource.c b/src/main/extractor_datasource.c index e6eaee6..0aaafcb 100644 --- a/src/main/extractor_datasource.c +++ b/src/main/extractor_datasource.c | |||
@@ -1012,7 +1012,7 @@ cfs_read (struct CompressedFileSource *cfs, | |||
1012 | */ | 1012 | */ |
1013 | static int64_t | 1013 | static int64_t |
1014 | cfs_seek (struct CompressedFileSource *cfs, | 1014 | cfs_seek (struct CompressedFileSource *cfs, |
1015 | uint64_t position, | 1015 | int64_t position, |
1016 | int whence) | 1016 | int whence) |
1017 | { | 1017 | { |
1018 | uint64_t nposition; | 1018 | uint64_t nposition; |
@@ -1023,6 +1023,7 @@ cfs_seek (struct CompressedFileSource *cfs, | |||
1023 | case SEEK_CUR: | 1023 | case SEEK_CUR: |
1024 | if (cfs->fpos + position < 0) | 1024 | if (cfs->fpos + position < 0) |
1025 | { | 1025 | { |
1026 | /* underflow */ | ||
1026 | LOG ("Invalid seek operation\n"); | 1027 | LOG ("Invalid seek operation\n"); |
1027 | return -1; | 1028 | return -1; |
1028 | } | 1029 | } |
@@ -1353,7 +1354,7 @@ EXTRACTOR_datasource_read_ (void *cls, | |||
1353 | */ | 1354 | */ |
1354 | int64_t | 1355 | int64_t |
1355 | EXTRACTOR_datasource_seek_ (void *cls, | 1356 | EXTRACTOR_datasource_seek_ (void *cls, |
1356 | uint64_t pos, | 1357 | int64_t pos, |
1357 | int whence) | 1358 | int whence) |
1358 | { | 1359 | { |
1359 | struct EXTRACTOR_Datasource *ds = cls; | 1360 | struct EXTRACTOR_Datasource *ds = cls; |