From 55aaf288c0c615cd2973dc0a76e0732f14c602ea Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 22 Jan 2022 23:52:30 +0000 Subject: support old compilers git-svn-id: svn://tug.org/texlive/trunk@61702 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ptexenc/ptexenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Build') 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); } -- cgit v1.2.3