mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
fix: int comparison with unsigned int (#490)
This commit is contained in:
@ -358,7 +358,7 @@ void GuiWindowFileDialog(GuiWindowFileDialogState *state)
|
|||||||
if (FileExists(TextFormat("%s/%s", state->dirPathText, state->fileNameText)))
|
if (FileExists(TextFormat("%s/%s", state->dirPathText, state->fileNameText)))
|
||||||
{
|
{
|
||||||
// Select filename from list view
|
// Select filename from list view
|
||||||
for (int i = 0; i < state->dirFiles.count; i++)
|
for (unsigned int i = 0; i < state->dirFiles.count; i++)
|
||||||
{
|
{
|
||||||
if (TextIsEqual(state->fileNameText, state->dirFiles.paths[i]))
|
if (TextIsEqual(state->fileNameText, state->dirFiles.paths[i]))
|
||||||
{
|
{
|
||||||
@ -435,7 +435,7 @@ static void ReloadDirectoryFiles(GuiWindowFileDialogState *state)
|
|||||||
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) memset(dirFilesIcon[i], 0, MAX_ICON_PATH_LENGTH);
|
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) memset(dirFilesIcon[i], 0, MAX_ICON_PATH_LENGTH);
|
||||||
|
|
||||||
// Copy paths as icon + fileNames into dirFilesIcon
|
// Copy paths as icon + fileNames into dirFilesIcon
|
||||||
for (int i = 0; i < state->dirFiles.count; i++)
|
for (unsigned int i = 0; i < state->dirFiles.count; i++)
|
||||||
{
|
{
|
||||||
if (IsPathFile(state->dirFiles.paths[i]))
|
if (IsPathFile(state->dirFiles.paths[i]))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user