diff --git a/ChangeLog b/ChangeLog index fc9cb11..8549ea8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -77,6 +77,9 @@ modifiers. in pcre2grep to the inbuilt echo facility. This may be useful in environments that do not support fork(). +19. Fix two instances of <= 0 being applied to unsigned integers (the VMS +compiler complains). + Version 10.32 10-September-2018 ------------------------------- diff --git a/src/pcre2_convert.c b/src/pcre2_convert.c index 1dd5c33..d45b6fe 100644 --- a/src/pcre2_convert.c +++ b/src/pcre2_convert.c @@ -276,7 +276,7 @@ while (plength > 0) break; case CHAR_BACKSLASH: - if (plength <= 0) return PCRE2_ERROR_END_BACKSLASH; + if (plength == 0) return PCRE2_ERROR_END_BACKSLASH; if (extended) nextisliteral = TRUE; else { if (*posix < 127 && strchr(posix_meta_escapes, *posix) != NULL) diff --git a/src/pcre2_substitute.c b/src/pcre2_substitute.c index bdae9e5..d404c93 100644 --- a/src/pcre2_substitute.c +++ b/src/pcre2_substitute.c @@ -435,7 +435,7 @@ do if (ptr >= repend) { - if (ptrstackptr <= 0) break; /* End of replacement string */ + if (ptrstackptr == 0) break; /* End of replacement string */ repend = ptrstack[--ptrstackptr]; ptr = ptrstack[--ptrstackptr]; continue;