From 549bca3382c76589c45c920b8522478914a53b5d Mon Sep 17 00:00:00 2001 From: "Stephen F. Booth" Date: Sun, 17 Dec 2023 11:09:40 -0600 Subject: [PATCH] Fix implicit long to int conversions --- taglib/mod/modfilebase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taglib/mod/modfilebase.cpp b/taglib/mod/modfilebase.cpp index aa6a3a0a..a3ccea34 100644 --- a/taglib/mod/modfilebase.cpp +++ b/taglib/mod/modfilebase.cpp @@ -77,7 +77,7 @@ void Mod::FileBase::writeU16L(unsigned short number) void Mod::FileBase::writeU32L(unsigned long number) { - writeBlock(ByteVector::fromUInt(number, false)); + writeBlock(ByteVector::fromUInt(static_cast(number), false)); } void Mod::FileBase::writeU16B(unsigned short number) @@ -87,7 +87,7 @@ void Mod::FileBase::writeU16B(unsigned short number) void Mod::FileBase::writeU32B(unsigned long number) { - writeBlock(ByteVector::fromUInt(number, true)); + writeBlock(ByteVector::fromUInt(static_cast(number), true)); } bool Mod::FileBase::readByte(unsigned char &byte)