aboutsummaryrefslogtreecommitdiff
path: root/lutf8lib.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-03-09 16:24:06 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-03-09 16:24:06 -0300
commit36d5d2b2847906aa3b66e020d5d894a14ba2bf90 (patch)
treeb6734417418defc9cc8ccd194f1c4e05e9336ee8 /lutf8lib.c
parent9e501d9855e560b08c50fb0cf6e147af93bb497e (diff)
downloadlua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.gz
lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.bz2
lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.zip
Details
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 73f0e49b..0cd7f9c3 100644
--- a/lutf8lib.c
+++ b/lutf8lib.c
@@ -149,7 +149,7 @@ static int codepoint (lua_State *L) {
149static void pushutfchar (lua_State *L, int arg) { 149static void pushutfchar (lua_State *L, int arg) {
150 lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg); 150 lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg);
151 luaL_argcheck(L, code <= MAXUTF, arg, "value out of range"); 151 luaL_argcheck(L, code <= MAXUTF, arg, "value out of range");
152 lua_pushfstring(L, "%U", (long)code); 152 lua_pushfstring(L, "%U", cast(unsigned long, code));
153} 153}
154 154
155 155