InputStream: make offset_type unsigned

This commit is contained in:
Max Kellermann
2014-08-18 09:47:23 +02:00
parent dfa53cb88e
commit 181edf4b53
5 changed files with 5 additions and 14 deletions

View File

@@ -274,7 +274,7 @@ input_cdio_open(const char *uri,
bool
CdioParanoiaInputStream::Seek(offset_type new_offset, Error &error)
{
if (new_offset < 0 || new_offset > size) {
if (new_offset > size) {
error.Format(cdio_domain, "Invalid offset to seek %ld (%ld)",
(long int)new_offset, (long int)size);
return false;