瀏覽代碼

ctkModelTester.cpp: long vs pointer have different size on MSYS2

Mario Emmenlauer 7 年之前
父節點
當前提交
c85d20c546
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/Core/ctkModelTester.cpp

+ 1 - 1
Libs/Core/ctkModelTester.cpp

@@ -258,7 +258,7 @@ void ctkModelTester::testData(const QModelIndex& index)const
     {
     this->test(index.data(Qt::DisplayRole).isValid(), 
                QString("A valid index can't have invalid data: %1, %2, %3")
-               .arg(index.row()).arg(index.column()).arg(long(index.internalPointer())));
+               .arg(index.row()).arg(index.column()).arg(ptrdiff_t(index.internalPointer())));
     }
 }