--- old/src/java.desktop/windows/native/libawt/windows/awt_List.cpp 2018-09-30 07:53:04.155000000 +0530 +++ new/src/java.desktop/windows/native/libawt/windows/awt_List.cpp 2018-09-30 07:53:03.891000000 +0530 @@ -241,7 +241,7 @@ } // index for selected item after multi-select mode change - int toSelect = SendListMessage(LB_GETCURSEL); + int toSelect = static_cast(SendListMessage(LB_GETCURSEL)); if (!isMultiSelect) { // MSDN: for single-select lists LB_GETCURSEL returns @@ -527,7 +527,7 @@ { if (notifyCode == LBN_SELCHANGE || notifyCode == LBN_DBLCLK) { /* Fixed an asserion failure when clicking on an empty List. */ - int nCurrentSelection = SendListMessage(LB_GETCURSEL); + int nCurrentSelection = static_cast(SendListMessage(LB_GETCURSEL)); if (nCurrentSelection != LB_ERR && GetCount() > 0) { if (notifyCode == LBN_SELCHANGE) { DoCallback("handleListChanged", "(I)V", nCurrentSelection);