From: Scott Wheeler Date: Thu, 28 Oct 2004 23:27:29 +0000 (+0000) Subject: Make sure that the type conversion happens so that this number ends up being X-Git-Tag: v1.5~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90772906dbcd1304d9cfe6be179bbd836854b5db;p=taglib 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 --- 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(); }