decoder/DsdLib: use offset_type instead of uint64_t

This commit is contained in:
Max Kellermann
2014-08-19 22:39:44 +02:00
parent bb472206de
commit e2adb82e29
4 changed files with 26 additions and 27 deletions

View File

@@ -50,12 +50,12 @@ DsdId::Equals(const char *s) const
*/
bool
dsdlib_skip_to(Decoder *decoder, InputStream &is,
uint64_t offset)
offset_type offset)
{
if (is.IsSeekable())
return is.Seek(offset, IgnoreError());
if (uint64_t(is.GetOffset()) > offset)
if (is.GetOffset() > offset)
return false;
return dsdlib_skip(decoder, is, offset - is.GetOffset());
@@ -66,7 +66,7 @@ dsdlib_skip_to(Decoder *decoder, InputStream &is,
*/
bool
dsdlib_skip(Decoder *decoder, InputStream &is,
uint64_t delta)
offset_type delta)
{
if (delta == 0)
return true;