From 49c42f3615bd876657bf697e3bf040ce796ae238 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 May 2019 14:24:10 -0300 Subject: Some improvements in 'luaconf.h' Added '#if !defined' in some definitions to allow external definitions; more comments; other small changes. --- lutf8lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lutf8lib.c') diff --git a/lutf8lib.c b/lutf8lib.c index 16cd68ad..9786b60c 100644 --- a/lutf8lib.c +++ b/lutf8lib.c @@ -28,7 +28,7 @@ /* ** Integer type for decoded UTF-8 values; MAXUTF needs 31 bits. */ -#if LUAI_BITSINT >= 31 +#if ((UINT_MAX >> 15) >> 15) >= 1 typedef unsigned int utfint; #else typedef unsigned long utfint; -- cgit v1.2.1