]> granicus.if.org Git - taglib/commitdiff
Make sure that the type conversion happens so that this number ends up being
authorScott Wheeler <wheeler@kde.org>
Thu, 28 Oct 2004 23:27:29 +0000 (23:27 +0000)
committerScott Wheeler <wheeler@kde.org>
Thu, 28 Oct 2004 23:27:29 +0000 (23:27 +0000)
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

index 69db78956c907c8025bc5873ec6ba1610c184658..7994efdd5857db3d777a09f70cbf4bcaff1887fb 100644 (file)
@@ -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();    
   }