Skip to content

Commit 0f92734

Browse files
committed
Fixed unsigned/signed mismatch
1 parent 57608e8 commit 0f92734

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/utility/utility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void SKIF_Util_FileExplorer_ContextMenuFile(PCWSTR filePath, HWND hWn
231231
std::wstring SKIF_Util_FileExplorer_BrowseForFolderXP(PCWSTR defaultPath);
232232
std::wstring SKIF_Util_FileExplorer_BrowseForFolder(PCWSTR defaultPath);
233233
bool SKIF_Util_Files_PruneOlderThan (std::wstring path, ULONGLONG secondsSince);
234-
bool SKIF_Util_Files_PruneToLatestN (std::wstring path, int filesToRetain);
234+
bool SKIF_Util_Files_PruneToLatestN (std::wstring path, size_t filesToRetain);
235235
std::string SKIF_Util_GetWindowMessageAsStr (UINT msg);
236236

237237

src/utility/image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ skiv_image_directory_s::updateFolderData (std::vector<fd_s>& list, std::vector<S
43004300
sortByFilename (list);
43014301

43024302
// Have an item changed?
4303-
for (int i = 0; i < list.size(); i++)
4303+
for (size_t i = 0; i < list.size(); i++)
43044304
{
43054305
if (list[i].path != oldList[i].path)
43064306
{

src/utility/utility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,7 @@ SKIF_Util_Files_PruneOlderThan (std::wstring path, ULONGLONG secondsSince)
29302930
}
29312931

29322932
bool
2933-
SKIF_Util_Files_PruneToLatestN (std::wstring path, int filesToRetain)
2933+
SKIF_Util_Files_PruneToLatestN (std::wstring path, size_t filesToRetain)
29342934
{
29352935
if (path.empty())
29362936
return false;
@@ -2967,7 +2967,7 @@ SKIF_Util_Files_PruneToLatestN (std::wstring path, int filesToRetain)
29672967
{ return (CompareFileTime (&a.ftLastWriteTime, &b.ftLastWriteTime) == -1); } // First file time is earlier than second file time.
29682968
);
29692969

2970-
for (int i = 0; i < (files.size() - filesToRetain); i++)
2970+
for (size_t i = 0; i < (files.size() - filesToRetain); i++)
29712971
DeleteFile ((path + files[i].cFileName).c_str());
29722972

29732973
return true;

0 commit comments

Comments
 (0)