InputStream: use int64_t instead of goffset

Decouple some more from GLib.
This commit is contained in:
Max Kellermann
2013-10-17 09:43:55 +02:00
parent 24780d99e6
commit 05de2e998c
20 changed files with 78 additions and 64 deletions

View File

@@ -178,12 +178,12 @@ zzip_input_eof(struct input_stream *is)
{
ZzipInputStream *zis = (ZzipInputStream *)is;
return (goffset)zzip_tell(zis->file) == is->size;
return (InputPlugin::offset_type)zzip_tell(zis->file) == is->size;
}
static bool
zzip_input_seek(struct input_stream *is,
goffset offset, int whence, Error &error)
zzip_input_seek(struct input_stream *is, InputPlugin::offset_type offset,
int whence, Error &error)
{
ZzipInputStream *zis = (ZzipInputStream *)is;
zzip_off_t ofs = zzip_seek(zis->file, offset, whence);