diff options
author | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-04-09 02:41:04 +0200 |
---|---|---|
committer | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-04-10 01:55:01 +0200 |
commit | f15c142c5e31422b5b9ec8de23f43d8091958fbd (patch) | |
tree | 1d5782bab56f56f435f51968cb743853e6cffda2 /src/citra_qt/debugger | |
parent | Merge pull request #689 from lioncash/format (diff) | |
download | yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar.gz yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar.bz2 yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar.lz yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar.xz yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.tar.zst yuzu-f15c142c5e31422b5b9ec8de23f43d8091958fbd.zip |
Diffstat (limited to 'src/citra_qt/debugger')
-rw-r--r-- | src/citra_qt/debugger/profiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/profiler.cpp b/src/citra_qt/debugger/profiler.cpp index ae0568b6a..2ac1748b7 100644 --- a/src/citra_qt/debugger/profiler.cpp +++ b/src/citra_qt/debugger/profiler.cpp @@ -26,7 +26,7 @@ static QVariant GetDataForColumn(int col, const AggregatedDuration& duration) static const TimingCategoryInfo* GetCategoryInfo(int id) { const auto& categories = GetProfilingManager().GetTimingCategoriesInfo(); - if (id >= categories.size()) { + if ((size_t)id >= categories.size()) { return nullptr; } else { return &categories[id]; @@ -98,7 +98,7 @@ QVariant ProfilerModel::data(const QModelIndex& index, int role) const const TimingCategoryInfo* info = GetCategoryInfo(index.row() - 2); return info != nullptr ? QString(info->name) : QVariant(); } else { - if (index.row() - 2 < results.time_per_category.size()) { + if (index.row() - 2 < (int)results.time_per_category.size()) { return GetDataForColumn(index.column(), results.time_per_category[index.row() - 2]); } else { return QVariant(); |