summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-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);
}