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
parent
872816f056
commit
4d25b41462
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue