From 1ee7493abcb8c96834084f873d5639831fe33b0d Mon Sep 17 00:00:00 2001 From: "Stephen F. Booth" Date: Mon, 18 Dec 2023 21:56:24 -0600 Subject: [PATCH] Use offset_t in XM::File::save() --- taglib/xm/xmfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/xm/xmfile.cpp b/taglib/xm/xmfile.cpp index 12cabaee..5600bb2d 100644 --- a/taglib/xm/xmfile.cpp +++ b/taglib/xm/xmfile.cpp @@ -417,7 +417,7 @@ bool XM::File::save() if(!readU16L(patternCount) || !readU16L(instrumentCount)) return false; - long pos = 60 + headerSize; // should be long long in taglib2. + offset_t pos = 60 + headerSize; // need to read patterns again in order to seek to the instruments: for(unsigned short i = 0; i < patternCount; ++ i) {