From 7addc0e52c8518e40533341f265d0780d37a743c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Mar 2019 17:35:28 +0300 Subject: warning fix --- plugins/Variables/src/contact.cpp | 2 +- plugins/Variables/src/stdafx.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Variables/src') diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp index 65c924a4c3..411df6581b 100644 --- a/plugins/Variables/src/contact.cpp +++ b/plugins/Variables/src/contact.cpp @@ -284,7 +284,7 @@ MCONTACT getContactFromString(const wchar_t *tszContact, DWORD dwFlags, int nMat // return random contact if (nMatch == -1) - return (MCONTACT)arResults[rand() % arResults.getCount()]; + return (UINT_PTR)arResults[rand() % arResults.getCount()]; // cache the found result if (count == 0) { diff --git a/plugins/Variables/src/stdafx.h b/plugins/Variables/src/stdafx.h index fe34079aa6..eafbd6c219 100644 --- a/plugins/Variables/src/stdafx.h +++ b/plugins/Variables/src/stdafx.h @@ -42,6 +42,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include #include #include +#include #include #include -- cgit v1.2.3