diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2023-09-11 14:01:15 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2023-09-11 14:01:15 +0000 |
commit | 42ab95f182e8603b26a80b05425137ac2e20cd03 (patch) | |
tree | de7ad26706a299586f1c26a2efa7d64e04878da0 | |
parent | 0c537d6e3483b015b07329871b3b45419f86548d (diff) |
ptexenc: fix unicode.c
git-svn-id: svn://tug.org/texlive/trunk@68237 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/ptexenc/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/ptexenc/unicode.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog b/Build/source/texk/ptexenc/ChangeLog index 5ce8ef83fba..dce75d109d6 100644 --- a/Build/source/texk/ptexenc/ChangeLog +++ b/Build/source/texk/ptexenc/ChangeLog @@ -1,3 +1,7 @@ +2023-09-11 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + + * unicode.c (UPTEXtoUCS): if >=UCS_MAX not >UCS_MAX. + 2023-02-09 Karl Berry <karl@tug.org> * version.ac: remove /dev, for TL23. diff --git a/Build/source/texk/ptexenc/unicode.c b/Build/source/texk/ptexenc/unicode.c index e2d654aeb9b..4a2bfe2458a 100644 --- a/Build/source/texk/ptexenc/unicode.c +++ b/Build/source/texk/ptexenc/unicode.c @@ -129,6 +129,6 @@ long UCStoUPTEX (long ucs) /* using over U+10.FFFF Area */ long UPTEXtoUCS (long uptex) { - if (uptex>UCS_MAX) return uptex % UCS_MAX; /* for OTF package */ + if (uptex>=UCS_MAX) return uptex % UCS_MAX; /* for OTF package */ return uptex; } |