summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-18 02:22:03 +0200
committerbunnei <bunneidev@gmail.com>2015-04-18 02:22:03 +0200
commit5e55a525d879b14853f7a1cd71601d2c4076670e (patch)
tree74b50de3c4b3fcd218cc4e96b9d4d336aa0c15c6 /src/citra_qt/debugger
parentMerge pull request #699 from yuriks/event-use-lambda (diff)
parentSilence some -Wsign-compare warnings. (diff)
downloadyuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.gz
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.bz2
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.lz
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.xz
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.tar.zst
yuzu-5e55a525d879b14853f7a1cd71601d2c4076670e.zip
Diffstat (limited to 'src/citra_qt/debugger')
-rw-r--r--src/citra_qt/debugger/profiler.cpp4
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();