summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-07-13 11:43:48 -0700
committerKonstantin Käfer <mail@kkaefer.com>2017-07-14 09:45:06 +0200
commit3b26177e9d3d9ed87f96ac33e7ed74bc7653f661 (patch)
treef1cd28c327218827317837d036c5a229c3d53bb5 /test
parent04fba1e01f61865f5af516cf433ab618df55737c (diff)
downloadqtlocation-mapboxgl-3b26177e9d3d9ed87f96ac33e7ed74bc7653f661.tar.gz
[test] Fix undefined behavior warning:
quads.test.cpp used a bin with unsupported x/y coordinates. Issue #9499.
Diffstat (limited to 'test')
-rw-r--r--test/text/quads.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text/quads.test.cpp b/test/text/quads.test.cpp
index f24b01ca87..682ba9d795 100644
--- a/test/text/quads.test.cpp
+++ b/test/text/quads.test.cpp
@@ -13,7 +13,7 @@ TEST(getIconQuads, normal) {
SymbolLayoutProperties::Evaluated layout;
Anchor anchor(2.0, 3.0, 0.0, 0.5f, 0);
ImagePosition image = {
- mapbox::Bin(-1, 15, 11, 0, 0),
+ mapbox::Bin(-1, 15, 11, 0, 0, 0, 0),
style::Image::Impl("test", PremultipliedImage({1,1}), 1.0)
};
@@ -38,7 +38,7 @@ TEST(getIconQuads, normal) {
TEST(getIconQuads, style) {
Anchor anchor(0.0, 0.0, 0.0, 0.5f, 0);
ImagePosition image = {
- mapbox::Bin(-1, 20, 20, 0, 0),
+ mapbox::Bin(-1, 20, 20, 0, 0, 0, 0),
style::Image::Impl("test", PremultipliedImage({1,1}), 1.0)
};