summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/buffer.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-21 12:01:06 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:05 +0100
commit5503aef6907b1fea74d6bdbe696f02b9f016f752 (patch)
treee0d8290fa42d7594e96e341d404f555e185a58d8 /src/mbgl/geometry/buffer.hpp
parent31a0d18ca1961b1cfb0785a1921b1f093167ebda (diff)
downloadqtlocation-mapboxgl-5503aef6907b1fea74d6bdbe696f02b9f016f752.tar.gz
make vaos immovable
Diffstat (limited to 'src/mbgl/geometry/buffer.hpp')
-rw-r--r--src/mbgl/geometry/buffer.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/geometry/buffer.hpp b/src/mbgl/geometry/buffer.hpp
index 0b28f77d0a..3649574bbf 100644
--- a/src/mbgl/geometry/buffer.hpp
+++ b/src/mbgl/geometry/buffer.hpp
@@ -80,7 +80,7 @@ protected:
}
}
pos += itemSize;
- return static_cast<char *>(array) + (pos - itemSize);
+ return reinterpret_cast<char *>(array) + (pos - itemSize);
}
// Get a pointer to the item at a given index.
@@ -92,7 +92,7 @@ protected:
if (i * itemSize >= pos) {
throw new std::runtime_error("Can't get element after array bounds");
} else {
- return static_cast<char *>(array) + (i * itemSize);
+ return reinterpret_cast<char *>(array) + (i * itemSize);
}
}