From 6c030482a5e0025687d3be2d4ac34e5498099adc Mon Sep 17 00:00:00 2001 From: David Ankers Date: Mon, 30 Jan 2012 04:51:11 +1100 Subject: [PATCH] Fix 64 bit compile --- ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp index d4913ed97..7b3da6d31 100644 --- a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp +++ b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp @@ -209,7 +209,7 @@ bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction acti int rows = beginRow; // read next item from input MIME and drop into the table line by line while(!stream.atEnd()) { - qint32 ptr; + quintptr ptr; stream >> ptr; NotificationItem* item = reinterpret_cast(ptr); int dragged = _list.indexOf(item); @@ -247,7 +247,7 @@ QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const int rows = 0; foreach (const QModelIndex& index, indexes) { if (!index.column()) { - qint32 item = reinterpret_cast(_list.at(index.row())); + quintptr item = reinterpret_cast(_list.at(index.row())); stream << item; ++rows; }