summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-18 13:54:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-18 13:54:06 (GMT)
commit176431f58481aeaba56e3463648fd85990236de4 (patch)
treeacd54df49d264cc7ceef526685b300026bcf7ed7 /tools
parentae243c85b7e7b470ea541cce41e76cd2cd7474f6 (diff)
parentaf7fa225c1d0ec592c7af29ead5922f45c1c15fb (diff)
downloadtcl-176431f58481aeaba56e3463648fd85990236de4.zip
tcl-176431f58481aeaba56e3463648fd85990236de4.tar.gz
tcl-176431f58481aeaba56e3463648fd85990236de4.tar.bz2
Merge 8.6
Diffstat (limited to 'tools')
-rw-r--r--tools/encoding/txt2enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/encoding/txt2enc.c b/tools/encoding/txt2enc.c
index 7ce85ef..7ee797b 100644
--- a/tools/encoding/txt2enc.c
+++ b/tools/encoding/txt2enc.c
@@ -176,7 +176,7 @@ main(int argc, char **argv)
}
hi = enc >> 8;
- lo = enc & 0xff;
+ lo = enc & 0xFF;
if (toUnicode[hi] == NULL) {
toUnicode[hi] = (Rune *) malloc(256 * sizeof(Rune));
memset(toUnicode[hi], 0, 256 * sizeof(Rune));
@@ -208,7 +208,7 @@ main(int argc, char **argv)
toUnicode[0][i] = i;
}
if (fixmissing) {
- for (i = 0x7F; i < 0xa0; i++) {
+ for (i = 0x7F; i < 0xA0; i++) {
if (toUnicode[i] == NULL && toUnicode[0][i] == 0) {
toUnicode[0][i] = i;
}
@@ -234,7 +234,7 @@ main(int argc, char **argv)
printf("%02X\n", hi);
for (lo = 0; lo < 256; lo++) {
printf("%04X", toUnicode[hi][lo]);
- if ((lo & 0x0f) == 0x0f) {
+ if ((lo & 0x0F) == 0x0F) {
putchar('\n');
}
}