summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-01 14:45:55 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:26 (GMT)
commit84ec936926710c305a9c3d86e12dd01e51a64454 (patch)
treea92a91637ba7d363d21c921769a7aa60bcb65e30
parent462f1abe85ee18c4db50e12075e9ff47f8d801bd (diff)
Do not truncate large id differences
-rw-r--r--src/plugins/runner/osm/translators/O5mWriter.cpp2
-rw-r--r--src/plugins/runner/osm/translators/O5mWriter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/runner/osm/translators/O5mWriter.cpp b/src/plugins/runner/osm/translators/O5mWriter.cpp
index a02109d..8a102d5 100644
--- a/src/plugins/runner/osm/translators/O5mWriter.cpp
+++ b/src/plugins/runner/osm/translators/O5mWriter.cpp
@@ -256,7 +256,7 @@ void O5mWriter::writeStringPair(const StringPair &pair, StringTable &stringTable
}
}
-void O5mWriter::writeSigned(qint32 value, QDataStream &stream) const
+void O5mWriter::writeSigned(qint64 value, QDataStream &stream) const
{
bool const negative = value < 0;
if (negative) {
diff --git a/src/plugins/runner/osm/translators/O5mWriter.h b/src/plugins/runner/osm/translators/O5mWriter.h
index ea876e6..1d2f4cc 100644
--- a/src/plugins/runner/osm/translators/O5mWriter.h
+++ b/src/plugins/runner/osm/translators/O5mWriter.h
@@ -40,7 +40,7 @@ private:
void writeVersion(const OsmPlacemarkData &osmData, QDataStream &stream) const;
void writeTags(const OsmPlacemarkData &osmData, StringTable &stringTable, QDataStream &stream) const;
void writeStringPair(const StringPair &pair, StringTable &stringTable, QDataStream &stream) const;
- void writeSigned(qint32 value, QDataStream &stream) const;
+ void writeSigned(qint64 value, QDataStream &stream) const;
void writeUnsigned(quint32 value, QDataStream &stream) const;
qint32 deltaTo(double value, double previous) const;
};