浏览代码

jar_xm_create_context_safe requesting const char* (#1611)

Fixing compiler warning for passing (unsigned char*) to (const char*)
pull/1613/head
Agnis "NeZvērs" Aldiņš 4 年前
committed by GitHub
父节点
当前提交
24839c7cfb
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/raudio.c

+ 1
- 1
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, p">(const char*)data, dataSize, 48000);
if (result == 0) // XM AUDIO.System.context created successfully
{
music.ctxType = MUSIC_MODULE_XM;

正在加载...
取消
保存