diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-12 14:26:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-12 14:26:16 +0000 |
commit | 260df8fee430a8d0806edf92e7fe93d2aaed8fd7 (patch) | |
tree | e68c7a8ac6a238192ec2ebed6c21ea51e82d056b /Build | |
parent | 8d3fb6d45f88893e2c0bbc32e50375f0bacc6983 (diff) |
propagate signed comparison fixes from mendex
git-svn-id: svn://tug.org/texlive/trunk@59169 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/upmendex/ChangeLog | 12 | ||||
-rw-r--r-- | Build/source/texk/upmendex/mendex.h | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/Build/source/texk/upmendex/ChangeLog b/Build/source/texk/upmendex/ChangeLog index 4456e403ea2..9d59e2728d1 100644 --- a/Build/source/texk/upmendex/ChangeLog +++ b/Build/source/texk/upmendex/ChangeLog @@ -1,3 +1,15 @@ +2021-05-09 Karl Berry <karl@freefriends.org> + + * mendex.h (page.attr): use int, not char, since we do signed + comparison and aarch64 apparently treats char as unsigned. + (index.words): use unsigned char for consistency. + + Same fixes as for mendex; see mendexk/ChangeLog. + Report from Johannes Hielscher, + https://tug.org/pipermail/tlbuild/2021q1/004873.html + and follow-up: + https://tug.org/pipermail/tlbuild/2021q2/004911.html + 2021-03-23 Karl Berry <karl@tug.org> * TL'21. diff --git a/Build/source/texk/upmendex/mendex.h b/Build/source/texk/upmendex/mendex.h index a268727a7e3..80552b1988e 100644 --- a/Build/source/texk/upmendex/mendex.h +++ b/Build/source/texk/upmendex/mendex.h @@ -14,12 +14,12 @@ struct page { char *page; char *enc; - char attr[3]; + int attr[3]; }; struct index { int num; - char words; + unsigned char words; UChar *dic[3]; UChar *org[3]; UChar *idx[3]; |