From 90772906dbcd1304d9cfe6be179bbd836854b5db Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Thu, 28 Oct 2004 23:27:29 +0000 Subject: [PATCH] Make sure that the type conversion happens so that this number ends up being the appropriate seek location. I'm pretty sure that this is what was causing Ogg length information to not work on x86_64. Can you confirm Hamish? BUG:86806 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@358653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- toolkit/tfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/tfile.cpp b/toolkit/tfile.cpp index 69db7895..7994efdd 100644 --- a/toolkit/tfile.cpp +++ b/toolkit/tfile.cpp @@ -226,11 +226,11 @@ long File::rfind(const ByteVector &pattern, long fromOffset, const ByteVector &b long bufferOffset; if(fromOffset == 0) { - seek(-1 * d->bufferSize, End); + seek(-1 * int(d->bufferSize), End); bufferOffset = tell(); } else { - seek(fromOffset + -1 * d->bufferSize, Beginning); + seek(fromOffset + -1 * int(d->bufferSize), Beginning); bufferOffset = tell(); }