summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2022-01-22 23:52:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2022-01-22 23:52:30 +0000
commit55aaf288c0c615cd2973dc0a76e0732f14c602ea (patch)
treedd1ddd9d59bdc9240d5f88d22236b15867364485 /Build/source/texk/ptexenc
parent1e75fdce092d43c33ea5803ca77aed6ebd40d4da (diff)
support old compilers
git-svn-id: svn://tug.org/texlive/trunk@61702 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc')
-rw-r--r--Build/source/texk/ptexenc/ptexenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/ptexenc/ptexenc.c b/Build/source/texk/ptexenc/ptexenc.c
index a5c67dc82f7..ee28d39ddab 100644
--- a/Build/source/texk/ptexenc/ptexenc.c
+++ b/Build/source/texk/ptexenc/ptexenc.c
@@ -331,9 +331,10 @@ long fromBUFF(unsigned char *s, int len, int pos)
long fromBUFFshort(unsigned short *s, int len, int pos)
{
+ int i;
unsigned char sc[6];
s += pos; len -= pos;
- for (int i=0;i<(len<6 ? len : 6);i++) sc[i]=0xFF&s[i];
+ for (i=0;i<(len<6 ? len : 6);i++) sc[i]=0xFF&s[i];
return fromBUFF(sc, (len<6 ? len : 6), 0);
}