summaryrefslogtreecommitdiff
path: root/lutf8lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lutf8lib.c')
-rw-r--r--lutf8lib.c2
1 files changed, 1 insertions, 1 deletions
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;