From e14017fc8be93afd61bf986522f82dd1bca69de7 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 22 Nov 2000 17:44:46 +0000 Subject: [PATCH] Use "-=" instead of "+=" to ensure a value <= 127. committer: mfx 974915086 +0000 --- src/stub/l_lx_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub/l_lx_exec.c b/src/stub/l_lx_exec.c index 130cc469..391add66 100644 --- a/src/stub/l_lx_exec.c +++ b/src/stub/l_lx_exec.c @@ -100,7 +100,7 @@ static uint32_t ascii5(char *p, uint32_t v, unsigned n) { do { unsigned char d = v % 32; - if (d >= 26) d += '0' - 'Z' - 1; + if (d >= 26) d -= 43; // 43 == 'Z' - '0' + 1 *--p += d; v /= 32; } while (--n > 0);