Skip to content

Commit

Permalink
Merge branch 'master' into entity-surrogate-pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 6, 2024
2 parents 0bdd8e4 + 4a83100 commit 659aaf8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/com/ctc/wstx/sr/StreamScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -1420,14 +1420,12 @@ protected EntityDecl resolveNonCharEntity()
int avail = mInputEnd - mInputPtr;
if (avail < 6) {
// split entity, or buffer boundary
/* Don't want to lose leading '&' (in case we can not expand
* the entity), so let's push it back first
*/
// Don't want to lose leading '&' (in case we can not expand
// the entity), so let's push it back first
--mInputPtr;

/* Shortest valid reference would be 3 chars ('&a;'); which
* would only be legal from an expanded entity...
*/
// Shortest valid reference would be 3 chars ('&a;'); which
// would only be legal from an expanded entity...
if (!ensureInput(6)) {
avail = inputInBuffer();
if (avail < 3) {
Expand Down

0 comments on commit 659aaf8

Please sign in to comment.