Skip to content

Commit 2d3b0aa

Browse files
committed
Merge pull request #3781 from mdboom/compiler-warning
MNT : Fix compiler warning
2 parents 1ae817a + 309f02d commit 2d3b0aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/py_adaptors.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ class PathIterator
136136

137137
inline unsigned vertex(double *x, double *y)
138138
{
139-
if (m_iterator >= m_total_vertices)
139+
if (m_iterator >= m_total_vertices) {
140+
*x = 0.0;
141+
*y = 0.0;
140142
return agg::path_cmd_stop;
143+
}
141144

142145
const size_t idx = m_iterator++;
143146

0 commit comments

Comments
 (0)