[test] Fix undefined behavior warning:
quads.test.cpp used a bin with unsupported x/y coordinates. Issue #9499.
This commit is contained in:
committed by
Konstantin Käfer
parent
04fba1e01f
commit
3b26177e9d
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user