Skip to content

Commit

Permalink
Fixed conversion warnings on Win64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Jan 27, 2019
1 parent 07b0af4 commit 99dee39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TGUI/Widgets/ListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ namespace tgui
return;
}

updateSelectedItem(index);
updateSelectedItem(static_cast<int>(index));

// Move the scrollbar
if (m_selectedItem * getItemHeight() < m_verticalScrollbar->getValue())
Expand Down
4 changes: 2 additions & 2 deletions src/TGUI/Widgets/TreeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ namespace tgui
updateSelectedAndHoveringItemColors();
}

m_verticalScrollbar->setMaximum(m_itemHeight * m_visibleNodes.size());
m_verticalScrollbar->setMaximum(static_cast<unsigned int>(m_itemHeight * m_visibleNodes.size()));
m_horizontalScrollbar->setMaximum(static_cast<unsigned int>(m_maxRight));

if ((m_maxRight + m_verticalScrollbar->getSize().x) > (getInnerSize().x - m_paddingCached.getLeft() - m_paddingCached.getRight()))
Expand Down Expand Up @@ -1108,7 +1108,7 @@ namespace tgui
};

int firstNode = 0;
int lastNode = m_visibleNodes.size();
int lastNode = static_cast<int>(m_visibleNodes.size());
if (m_verticalScrollbar->getViewportSize() < m_verticalScrollbar->getMaximum())
{
firstNode = static_cast<int>(m_verticalScrollbar->getValue() / m_itemHeight);
Expand Down

0 comments on commit 99dee39

Please sign in to comment.