diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-03-09 16:24:06 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-03-09 16:24:06 -0300 |
| commit | 36d5d2b2847906aa3b66e020d5d894a14ba2bf90 (patch) | |
| tree | b6734417418defc9cc8ccd194f1c4e05e9336ee8 /lutf8lib.c | |
| parent | 9e501d9855e560b08c50fb0cf6e147af93bb497e (diff) | |
| download | lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.gz lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.bz2 lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.zip | |
Details
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 | ||
