summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAgnis "NeZvērs" Aldiņš <[email protected]>2021-02-24 13:23:39 +0200
committerGitHub <[email protected]>2021-02-24 12:23:39 +0100
commit24839c7cfbf253c340a157acc8836a0f74a81376 (patch)
treecf214dc9b442a03afcb23221447b11fa3c291a0d
parent84ab4ce00706723a88e7b47666bccf7375984af8 (diff)
downloadraylib-24839c7cfbf253c340a157acc8836a0f74a81376.tar.gz
raylib-24839c7cfbf253c340a157acc8836a0f74a81376.zip
jar_xm_create_context_safe requesting const char* (#1611)
Fixing compiler warning for passing (unsigned char*) to (const char*)
-rw-r--r--src/raudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 9b135dc1..a0134026 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1368,7 +1368,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d
else if (TextIsEqual(fileExtLower, ".xm"))
{
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
{
music.ctxType = MUSIC_MODULE_XM;