Commit d3c44bd3 authored by Tim Jenssen's avatar Tim Jenssen

fix warning on windows

warning was:
"flamegraphview.cpp(95) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)"

Change-Id: Iea483e75719a8ba8d227faa4c866aca757cd6886
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 54e553ac
......@@ -92,7 +92,7 @@ void FlameGraphView::onVisibleFeaturesChanged(quint64 features)
{
int rangeTypeMask = 0;
for (int rangeType = 0; rangeType < QmlDebug::MaximumRangeType; ++rangeType) {
if (features & (1 << QmlDebug::featureFromRangeType(QmlDebug::RangeType(rangeType))))
if (features & (1ULL << QmlDebug::featureFromRangeType(QmlDebug::RangeType(rangeType))))
rangeTypeMask |= (1 << rangeType);
}
m_content->rootObject()->setProperty("visibleRangeTypes", rangeTypeMask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment