Skip to content

Commit 111fd21

Browse files
committed
Fix an endless loop.
1 parent f344ac4 commit 111fd21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/emc/rs274ngc/interp_g7x.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ void g7x::pocket(int cycle, std::complex<double> location, iterator p,
797797
}
798798
return;
799799
}
800-
if(std::abs(imag(location)-x)>tolerance) {
800+
if(std::abs(imag(location)-x)>tolerance || (*p)->ep()==location) {
801801
/* Our x coordinate is beyond the current segment, move onto
802802
the next
803803
*/

0 commit comments

Comments
 (0)