diff options
| author | Ray <[email protected]> | 2021-05-30 11:50:32 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-30 11:50:32 +0200 |
| commit | 0369ec9adf5c6f4838a74e29e049ebc4e3aab14f (patch) | |
| tree | 3ffd03066df609c0c8a17da90eacb81cd966a2a5 /src/raudio.c | |
| parent | c828e481fbee9846721552cb37250a93332ee115 (diff) | |
| download | raylib-0369ec9adf5c6f4838a74e29e049ebc4e3aab14f.tar.gz raylib-0369ec9adf5c6f4838a74e29e049ebc4e3aab14f.zip | |
Some code tweaks
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raudio.c b/src/raudio.c index 639d6cd5..bb009b6e 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1428,13 +1428,13 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d #if defined(SUPPORT_FILEFORMAT_MOD) else if (TextIsEqual(fileExtLower, ".mod")) { - jar_mod_context_t *ctxMod = RL_MALLOC(sizeof(jar_mod_context_t)); + jar_mod_context_t *ctxMod = (jar_mod_context_t *)RL_MALLOC(sizeof(jar_mod_context_t)); int result = 0; jar_mod_init(ctxMod); - // copy data to allocated memory for default UnloadMusicStream - unsigned char *newData = RL_MALLOC(dataSize); + // Copy data to allocated memory for default UnloadMusicStream + unsigned char *newData = (unsigned char *)RL_MALLOC(dataSize); int it = dataSize/sizeof(unsigned char); for (int i = 0; i < it; i++){ newData[i] = data[i]; |
