Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[test] Fix undefined behavior warning:
Browse files Browse the repository at this point in the history
quads.test.cpp used a bin with unsupported x/y coordinates.
Issue #9499.
  • Loading branch information
ChrisLoer authored and kkaefer committed Jul 14, 2017
1 parent 04fba1e commit 3b26177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/text/quads.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

Expand All @@ -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)
};

Expand Down

0 comments on commit 3b26177

Please sign in to comment.