aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-08 12:49:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-08 12:49:39 -0300
commitd827e96f33056bcc0daca0c04b3273604f9d5986 (patch)
treeec3d9fb723319edc0105d7bea652c8d07c064770 /lobject.h
parent3f0ea90aa8b8493485637f6e8d2a070a1ac0d5cb (diff)
downloadlua-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index b5ca3668..bc2f69ab 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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
834LUAI_FUNC int luaO_utf8esc (char *buff, unsigned long x); 834LUAI_FUNC int luaO_utf8esc (char *buff, l_uint32 x);
835LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); 835LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x);
836LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); 836LUAI_FUNC lu_byte luaO_codeparam (unsigned int p);
837LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); 837LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x);