diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 12:49:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 12:49:39 -0300 |
commit | d827e96f33056bcc0daca0c04b3273604f9d5986 (patch) | |
tree | ec3d9fb723319edc0105d7bea652c8d07c064770 /lobject.h | |
parent | 3f0ea90aa8b8493485637f6e8d2a070a1ac0d5cb (diff) | |
download | lua-d827e96f33056bcc0daca0c04b3273604f9d5986.tar.gz lua-d827e96f33056bcc0daca0c04b3273604f9d5986.tar.bz2 lua-d827e96f33056bcc0daca0c04b3273604f9d5986.zip |
Using 'l_uint32' for unicode codepoints in scanner
'l_uint32' is enough for unicode codepoints (versus unsigned long),
and the utf-8 library already uses that type.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -831,7 +831,7 @@ typedef struct Table { | |||
831 | if (msg == NULL) luaD_throw(L, LUA_ERRMEM); /* only after 'va_end' */ } | 831 | if (msg == NULL) luaD_throw(L, LUA_ERRMEM); /* only after 'va_end' */ } |
832 | 832 | ||
833 | 833 | ||
834 | LUAI_FUNC int luaO_utf8esc (char *buff, unsigned long x); | 834 | LUAI_FUNC int luaO_utf8esc (char *buff, l_uint32 x); |
835 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); | 835 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); |
836 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); | 836 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); |
837 | LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); | 837 | LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); |