From 3b6d5ec353d67a865759d0be3c83f2ae685aeb39 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 1 Aug 2026 01:55:40 +0300
Subject: [PATCH] timidity/sndfont.c (convert_tremolo): silence MSVC C4244
warning
---
src/timidity/sndfont.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/timidity/sndfont.c b/src/timidity/sndfont.c
index ac70c9fd..84015c99 100644
--- a/src/timidity/sndfont.c
+++ b/src/timidity/sndfont.c
@@ -864,7 +864,7 @@ static void convert_tremolo(MidiSong *song, Layer *lay, SFInfo *sf, SampleList *
if (sf->version == 1)
level = (120 * level) / 64; /* to centibel */
/* centibel to linear */
- sp->v.tremolo_depth = TO_LINEAR(level);
+ sp->v.tremolo_depth = (Uint8) TO_LINEAR(level);
/* frequency in mHz */
if (lay->set[SF_freqLfo1]) {