From 333f189add8c6ba4194d357b6c44db9f0246cae6 Mon Sep 17 00:00:00 2001 From: Mataes Date: Tue, 23 Apr 2019 16:17:54 +0300 Subject: Sessions: warning fix --- plugins/Sessions/Src/Main.cpp | 2 +- plugins/Sessions/Src/Utils.cpp | 2 +- plugins/Sessions/Src/stdafx.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 8a5ca2565b..56d3d7bc6d 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -28,7 +28,7 @@ bool g_hghostw; HWND hClistControl; int g_ses_limit; -int g_ses_count; +size_t g_ses_count; bool g_bExclHidden; bool g_bWarnOnHidden; bool g_bOtherWarnings; diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp index 5d82d590dd..de6a05d92b 100644 --- a/plugins/Sessions/Src/Utils.cpp +++ b/plugins/Sessions/Src/Utils.cpp @@ -50,7 +50,7 @@ void AddSessionMark(MCONTACT hContact, int mode, char bit) else pszBuffer = szValue.detach(); char temp_1 = pszBuffer[0]; - for (int i = 0; i < g_ses_count; i++) { + for (size_t i = 0; i < g_ses_count; i++) { char temp_2 = pszBuffer[i + 1]; pszBuffer[i + 1] = temp_1; temp_1 = temp_2; diff --git a/plugins/Sessions/Src/stdafx.h b/plugins/Sessions/Src/stdafx.h index 2d319c94f9..c6185f5acc 100644 --- a/plugins/Sessions/Src/stdafx.h +++ b/plugins/Sessions/Src/stdafx.h @@ -70,7 +70,7 @@ int SaveSessionDate(); extern MCONTACT session_list_recovered[255]; extern MCONTACT session_list[255]; extern int g_ses_limit; -extern int g_ses_count; +extern size_t g_ses_count; extern bool g_bExclHidden; extern bool g_bWarnOnHidden; extern bool g_bOtherWarnings; -- cgit v1.2.3