From dee308f90c4c7c9a0caaee3457a88fdbc7e8413f Mon Sep 17 00:00:00 2001
From: "Stephen F. Booth" <me@sbooth.org>
Date: Sat, 7 Dec 2024 19:48:28 -0600
Subject: [PATCH] Use `uintptr_t` for buffer size calculations

---
 taglib/shn/shnfile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/taglib/shn/shnfile.cpp b/taglib/shn/shnfile.cpp
index a3229b4c..24f6a8b5 100644
--- a/taglib/shn/shnfile.cpp
+++ b/taglib/shn/shnfile.cpp
@@ -448,7 +448,7 @@ void SHN::File::read(AudioProperties::ReadStyle propertiesStyle)
 //  auto chunkSize = read_uint_big32(header_bytes, 4);
 
   const auto chunkData = header_bytes + 8;
-  const auto size = header_size - 8;
+  const uintptr_t size = header_size - 8;
 
   // WAVE
   if(chunkID == 'RIFF') {