aboutsummaryrefslogtreecommitdiff
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 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