mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 11:49:17 -05:00
jar_xm_create_context_safe requesting const char* (#1611)
Fixing compiler warning for passing (unsigned char*) to (const char*)
This commit is contained in:
committed by
GitHub
parent
84ab4ce007
commit
24839c7cfb
@ -1368,7 +1368,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d
|
|||||||
else if (TextIsEqual(fileExtLower, ".xm"))
|
else if (TextIsEqual(fileExtLower, ".xm"))
|
||||||
{
|
{
|
||||||
jar_xm_context_t *ctxXm = NULL;
|
jar_xm_context_t *ctxXm = NULL;
|
||||||
int result = jar_xm_create_context_safe(&ctxXm, data, dataSize, 48000);
|
int result = jar_xm_create_context_safe(&ctxXm, (const char*)data, dataSize, 48000);
|
||||||
if (result == 0) // XM AUDIO.System.context created successfully
|
if (result == 0) // XM AUDIO.System.context created successfully
|
||||||
{
|
{
|
||||||
music.ctxType = MUSIC_MODULE_XM;
|
music.ctxType = MUSIC_MODULE_XM;
|
||||||
|
|||||||
Reference in New Issue
Block a user