aboutsummaryrefslogtreecommitdiff
path: root/lutf8lib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-13 14:24:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-13 14:24:10 -0300
commit49c42f3615bd876657bf697e3bf040ce796ae238 (patch)
treebb2268fbcd525045b5e9ed523b5dab8a67fc7fe1 /lutf8lib.c
parentd881325c2fcbb6d2c434ec403b0bbe51ac200c7b (diff)
downloadlua-49c42f3615bd876657bf697e3bf040ce796ae238.tar.gz
lua-49c42f3615bd876657bf697e3bf040ce796ae238.tar.bz2
lua-49c42f3615bd876657bf697e3bf040ce796ae238.zip
Some improvements in 'luaconf.h'
Added '#if !defined' in some definitions to allow external definitions; more comments; other small changes.
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 @@
28/* 28/*
29** Integer type for decoded UTF-8 values; MAXUTF needs 31 bits. 29** Integer type for decoded UTF-8 values; MAXUTF needs 31 bits.
30*/ 30*/
31#if LUAI_BITSINT >= 31 31#if ((UINT_MAX >> 15) >> 15) >= 1
32typedef unsigned int utfint; 32typedef unsigned int utfint;
33#else 33#else
34typedef unsigned long utfint; 34typedef unsigned long utfint;