signed unsigned missmatches
This commit is contained in:
parent
b9f405c7b3
commit
d3e396811e
|
|
@ -1733,8 +1733,8 @@ void UpdateMusicStream(Music music)
|
||||||
AUDIO.System.pcmBufferSize = pcmSize;
|
AUDIO.System.pcmBufferSize = pcmSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int framesLeft = music.frameCount - music.stream.buffer->framesProcessed; // Frames left to be processed
|
unsigned int framesLeft = music.frameCount - music.stream.buffer->framesProcessed; // Frames left to be processed
|
||||||
int framesToStream = 0; // Total frames to be streamed
|
unsigned int framesToStream = 0; // Total frames to be streamed
|
||||||
unsigned int framesLoopingExtra = 0; // In case music requires to loop, we could need to add more frames from beginning to fill buffer
|
unsigned int framesLoopingExtra = 0; // In case music requires to loop, we could need to add more frames from beginning to fill buffer
|
||||||
|
|
||||||
// Check both sub-buffers to check if they require refilling
|
// Check both sub-buffers to check if they require refilling
|
||||||
|
|
|
||||||
12
src/rcore.c
12
src/rcore.c
|
|
@ -3141,7 +3141,7 @@ FilePathList LoadDirectoryFiles(const char *dirPath)
|
||||||
// Memory allocation for dirFileCount
|
// Memory allocation for dirFileCount
|
||||||
files.capacity = fileCounter;
|
files.capacity = fileCounter;
|
||||||
files.paths = (char **)RL_MALLOC(files.capacity*sizeof(char *));
|
files.paths = (char **)RL_MALLOC(files.capacity*sizeof(char *));
|
||||||
for (int i = 0; i < files.capacity; i++) files.paths[i] = (char *)RL_MALLOC(MAX_FILEPATH_LENGTH*sizeof(char));
|
for (unsigned int i = 0; i < files.capacity; i++) files.paths[i] = (char *)RL_MALLOC(MAX_FILEPATH_LENGTH*sizeof(char));
|
||||||
|
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
|
||||||
|
|
@ -3165,7 +3165,7 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
|
||||||
|
|
||||||
files.capacity = MAX_FILEPATH_CAPACITY;
|
files.capacity = MAX_FILEPATH_CAPACITY;
|
||||||
files.paths = (char **)RL_CALLOC(files.capacity, sizeof(char *));
|
files.paths = (char **)RL_CALLOC(files.capacity, sizeof(char *));
|
||||||
for (int i = 0; i < files.capacity; i++) files.paths[i] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char));
|
for (unsigned int i = 0; i < files.capacity; i++) files.paths[i] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char));
|
||||||
|
|
||||||
// WARNING: basePath is always prepended to scanned paths
|
// WARNING: basePath is always prepended to scanned paths
|
||||||
if (scanSubdirs) ScanDirectoryFilesRecursively(basePath, &files, filter);
|
if (scanSubdirs) ScanDirectoryFilesRecursively(basePath, &files, filter);
|
||||||
|
|
@ -3179,7 +3179,7 @@ void UnloadDirectoryFiles(FilePathList files)
|
||||||
{
|
{
|
||||||
if (files.capacity > 0)
|
if (files.capacity > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
|
for (unsigned int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
|
||||||
|
|
||||||
RL_FREE(files.paths);
|
RL_FREE(files.paths);
|
||||||
}
|
}
|
||||||
|
|
@ -3229,7 +3229,7 @@ void UnloadDroppedFiles(FilePathList files)
|
||||||
|
|
||||||
if (files.count > 0)
|
if (files.count > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
|
for (unsigned int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
|
||||||
|
|
||||||
RL_FREE(files.paths);
|
RL_FREE(files.paths);
|
||||||
|
|
||||||
|
|
@ -5471,7 +5471,7 @@ static void WindowDropCallback(GLFWwindow *window, int count, const char **paths
|
||||||
// In case previous dropped filepaths have not been freed, we free them
|
// In case previous dropped filepaths have not been freed, we free them
|
||||||
if (CORE.Window.dropFileCount > 0)
|
if (CORE.Window.dropFileCount > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < CORE.Window.dropFileCount; i++) RL_FREE(CORE.Window.dropFilepaths[i]);
|
for (unsigned int i = 0; i < CORE.Window.dropFileCount; i++) RL_FREE(CORE.Window.dropFilepaths[i]);
|
||||||
|
|
||||||
RL_FREE(CORE.Window.dropFilepaths);
|
RL_FREE(CORE.Window.dropFilepaths);
|
||||||
|
|
||||||
|
|
@ -5483,7 +5483,7 @@ static void WindowDropCallback(GLFWwindow *window, int count, const char **paths
|
||||||
CORE.Window.dropFileCount = count;
|
CORE.Window.dropFileCount = count;
|
||||||
CORE.Window.dropFilepaths = (char **)RL_CALLOC(CORE.Window.dropFileCount, sizeof(char *));
|
CORE.Window.dropFilepaths = (char **)RL_CALLOC(CORE.Window.dropFileCount, sizeof(char *));
|
||||||
|
|
||||||
for (int i = 0; i < CORE.Window.dropFileCount; i++)
|
for (unsigned int i = 0; i < CORE.Window.dropFileCount; i++)
|
||||||
{
|
{
|
||||||
CORE.Window.dropFilepaths[i] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char));
|
CORE.Window.dropFilepaths[i] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char));
|
||||||
strcpy(CORE.Window.dropFilepaths[i], paths[i]);
|
strcpy(CORE.Window.dropFilepaths[i], paths[i]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user