Browse Source

Citra_QT : Fix Conversion Warnings

zawata 11 years ago
parent
commit
3c802b06e9

+ 1 - 1
src/citra_qt/debugger/graphics_cmdlists.cpp

@@ -168,7 +168,7 @@ GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(p
 }
 }
 
 
 int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
 int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
-    return pica_trace.writes.size();
+    return static_cast<int>(pica_trace.writes.size());
 }
 }
 
 
 int GPUCommandListModel::columnCount(const QModelIndex& parent) const {
 int GPUCommandListModel::columnCount(const QModelIndex& parent) const {

+ 1 - 1
src/citra_qt/debugger/profiler.cpp

@@ -74,7 +74,7 @@ int ProfilerModel::rowCount(const QModelIndex& parent) const
     if (parent.isValid()) {
     if (parent.isValid()) {
         return 0;
         return 0;
     } else {
     } else {
-        return results.time_per_category.size() + 2;
+        return static_cast<int>(results.time_per_category.size() + 2);
     }
     }
 }
 }