mirror of
https://github.com/lua/lua.git
synced 2026-10-28 19:45:26 +00:00
Details
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ static int codepoint (lua_State *L) {
|
||||
static void pushutfchar (lua_State *L, int arg) {
|
||||
lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg);
|
||||
luaL_argcheck(L, code <= MAXUTF, arg, "value out of range");
|
||||
lua_pushfstring(L, "%U", (long)code);
|
||||
lua_pushfstring(L, "%U", cast(unsigned long, code));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user