summaryrefslogtreecommitdiff
path: root/src/geometry/vertex_buffer.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-02-21 13:08:13 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-02-21 13:08:13 +0100
commite382cab17dd399ef851a4a2800a11dd7b9a69c15 (patch)
treeff54618a2124267ea45ecf227e0f43058cb34168 /src/geometry/vertex_buffer.cpp
parent4418f2d1c8f51ee268e2180c287abae0b8dbc574 (diff)
downloadqtlocation-mapboxgl-e382cab17dd399ef851a4a2800a11dd7b9a69c15.tar.gz
make implicit type conversions explicit
Diffstat (limited to 'src/geometry/vertex_buffer.cpp')
-rw-r--r--src/geometry/vertex_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geometry/vertex_buffer.cpp b/src/geometry/vertex_buffer.cpp
index 47fe73a2aa..0ce21fd51c 100644
--- a/src/geometry/vertex_buffer.cpp
+++ b/src/geometry/vertex_buffer.cpp
@@ -12,7 +12,7 @@ VertexBuffer::~VertexBuffer() {
}
}
-uint32_t VertexBuffer::index() const {
+size_t VertexBuffer::index() const {
// We store 2 coordinates per vertex + 1 linesofar + 1 extrude coord pair == 4 (== 8 bytes)
return array.size() / 2;
}