diff --git a/liboctave/util/lo-regexp.cc b/liboctave/util/lo-regexp.cc index 3cd10b976e..20c2aa392f 100644 --- a/liboctave/util/lo-regexp.cc +++ b/liboctave/util/lo-regexp.cc @@ -174,7 +174,7 @@ regexp::compile_internal () m_names++; } - if (new_pos - pos > 0) + if (new_pos > pos) buf << m_pattern.substr (pos, new_pos-pos); if (inames < 10) buf << "(?P