diff options
Diffstat (limited to 'lutf8lib.c')
| -rw-r--r-- | lutf8lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -149,7 +149,7 @@ static int codepoint (lua_State *L) { | |||
| 149 | static void pushutfchar (lua_State *L, int arg) { | 149 | static 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 | ||
