From d6a6810bd546d908f70efb23dcf9abbfdbff395f Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Thu, 13 Feb 2014 09:43:44 -0700 Subject: [PATCH] ContextMenu: Fix complier warnings --- Library/ContextMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/ContextMenu.cpp b/Library/ContextMenu.cpp index 7eb1cd04..50b51844 100644 --- a/Library/ContextMenu.cpp +++ b/Library/ContextMenu.cpp @@ -513,7 +513,7 @@ void ContextMenu::AppendSkinCustomMenu( else { const UINT_PTR id = (index << 16) | (IDM_SKIN_CUSTOMCONTEXTMENU_FIRST + i); - InsertMenu(menu, position + 1, MF_BYPOSITION | MF_STRING, id, cTitles[i].c_str()); + InsertMenu(menu, (UINT)(position + 1), MF_BYPOSITION | MF_STRING, id, cTitles[i].c_str()); } ++position; @@ -607,7 +607,7 @@ void ContextMenu::CreateLayoutMenu(HMENU layoutMenu) const auto& layouts = GetRainmeter().m_Layouts; for (size_t i = 0, isize = layouts.size(); i < isize; ++i) { - InsertMenu(layoutMenu, i, MF_BYPOSITION, ID_THEME_FIRST + i, layouts[i].c_str()); + InsertMenu(layoutMenu, (UINT)i, MF_BYPOSITION, ID_THEME_FIRST + i, layouts[i].c_str()); } }