summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-11 17:35:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-11 17:35:28 +0300
commit7addc0e52c8518e40533341f265d0780d37a743c (patch)
treec54e10dcba16b8f531ebf81c4fdd6713961c299c
parent1f0b0e7a2047320d6808ac565eb35d66905252fd (diff)
warning fix
-rw-r--r--plugins/Variables/src/contact.cpp2
-rw-r--r--plugins/Variables/src/stdafx.h1
2 files changed, 2 insertions, 1 deletions
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 <m_options.h>
#include <m_icolib.h>
#include <m_clc.h>
+#include <m_netlib.h>
#include <m_metacontacts.h>
#include <m_timezones.h>