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>
This commit is contained in:
parent
872816f056
commit
4d25b41462
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ gme_err_t readCallback(void *data, void *out, int count) {
|
||||||
if(type == gme_spc_type || type == gme_sfm_type)
|
if(type == gme_spc_type || type == gme_sfm_type)
|
||||||
sampleRate = 32000;
|
sampleRate = 32000;
|
||||||
|
|
||||||
emu = gme_new_emu(type, sampleRate);
|
emu = gme_new_emu(type, (int)sampleRate);
|
||||||
if(!emu) {
|
if(!emu) {
|
||||||
ALog(@"GME: No new emu!");
|
ALog(@"GME: No new emu!");
|
||||||
return NO;
|
return NO;
|
||||||
|
|
Loading…
Reference in a new issue