Skip to content

Commit 6b18524

Browse files
committed
fix compiler warnings
1 parent 959e328 commit 6b18524

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/svgren/filter_applier.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ filter_result color_matrix(
412412
ASSERT(!s.image_span.empty() || s.rect().d.is_zero())
413413

414414
for (unsigned y = 0; y != s.rect().d.y(); ++y) {
415-
auto sp = s.image_span[size_t(y)].data();
416-
auto dp = ret.surface.image_span[size_t(y)].data();
415+
auto sp = s.image_span[y].data();
416+
auto dp = ret.surface.image_span[y].data();
417417
for (unsigned x = 0; x != s.rect().d.x(); ++x) {
418418
auto cc = *sp;
419419
++sp;
@@ -621,9 +621,9 @@ filter_result blend(surface& in, surface& in2, svgdom::fe_blend_element::mode mo
621621
filter_result ret(s1.rect());
622622

623623
for (unsigned y = 0; y != ret.surface.rect().d.y(); ++y) {
624-
auto sp1 = s1.image_span[size_t(y)].data();
625-
auto sp2 = s2.image_span[size_t(y)].data();
626-
auto dp = ret.surface.image_span[size_t(y)].data();
624+
auto sp1 = s1.image_span[y].data();
625+
auto sp2 = s2.image_span[y].data();
626+
auto dp = ret.surface.image_span[y].data();
627627
for (unsigned x = 0; x != ret.surface.rect().d.x(); ++x) {
628628
// TODO: optimize by using integer arithmetics instead of floating point
629629
auto c01 = rasterimage::to_float<real>(*sp1);
@@ -712,9 +712,9 @@ filter_result composite(surface& in, surface& in2, const svgdom::fe_composite_el
712712
filter_result ret(s1.rect());
713713

714714
for (unsigned y = 0; y != ret.surface.rect().d.y(); ++y) {
715-
auto sp1 = s1.image_span[size_t(y)].data();
716-
auto sp2 = s2.image_span[size_t(y)].data();
717-
auto dp = ret.surface.image_span[size_t(y)].data();
715+
auto sp1 = s1.image_span[y].data();
716+
auto sp2 = s2.image_span[y].data();
717+
auto dp = ret.surface.image_span[y].data();
718718
for (unsigned x = 0; x != ret.surface.rect().d.x(); ++x) {
719719
// TODO: optimize by using integer arithmetics instead of floating point
720720
auto c01 = rasterimage::to_float<real>(*sp1);

0 commit comments

Comments
 (0)