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 <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-05-24 01:11:07 -07:00
parent 872816f056
commit 4d25b41462
1 changed files with 1 additions and 1 deletions

View File

@ -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;