Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 309f02d

Browse files
committed
Fix compiler warning
1 parent 86ec1b6 commit 309f02d

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)