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; }