From 4d25b414620acf8ec313d5453c3e252a34b7d362 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 24 May 2022 01:11:07 -0700 Subject: [PATCH] GME Plugin: Silence a type truncation warning Adding a cast here silences a warning from passing a long to a function accepting an int. It doesn't really matter here anyway, as the long in question is hard coded to initialize to a fixed sample rate. Even when sample rate configuration is eventually added, this will still be hard capped to well within the range of 32-bit integers. Signed-off-by: Christopher Snowhill --- Plugins/GME/GameDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/GME/GameDecoder.m b/Plugins/GME/GameDecoder.m index b3e6e28ca..1900bee6e 100644 --- a/Plugins/GME/GameDecoder.m +++ b/Plugins/GME/GameDecoder.m @@ -58,7 +58,7 @@ gme_err_t readCallback(void *data, void *out, int count) { if(type == gme_spc_type || type == gme_sfm_type) sampleRate = 32000; - emu = gme_new_emu(type, sampleRate); + emu = gme_new_emu(type, (int)sampleRate); if(!emu) { ALog(@"GME: No new emu!"); return NO;