We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd4fa6c commit a32c3b4Copy full SHA for a32c3b4
1 file changed
src/emc/rs274ngc/interp_python.cc
@@ -293,6 +293,8 @@ pycontext::~pycontext() { delete impl; }
293
pycontext::pycontext(const pycontext &other)
294
: impl(new pycontext_impl(*other.impl)) {}
295
pycontext &pycontext::operator=(const pycontext &other) {
296
+ if(&other == this) // Assign to self
297
+ return *this;
298
delete impl;
299
impl = new pycontext_impl(*other.impl);
300
return *this;
0 commit comments