瀏覽代碼

Merge pull request #782 from emmenlau/emmenlau_fix_pointer_size

ctkModelTester.cpp: long vs pointer have different size on MSYS2
Jean-Christophe Fillion-Robin 7 年之前
父節點
當前提交
40bf325180
共有 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())));
     }
 }