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 | |
| parent | 9e501d9855e560b08c50fb0cf6e147af93bb497e (diff) | |
| download | lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.gz lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.tar.bz2 lua-36d5d2b2847906aa3b66e020d5d894a14ba2bf90.zip | |
Details
Diffstat (limited to '')
| -rw-r--r-- | lopcodes.c | 2 | ||||
| -rw-r--r-- | lutf8lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -104,7 +104,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
| 104 | ,opmode(0, 1, 0, 0, 1, iABC) /* OP_VARARG */ | 104 | ,opmode(0, 1, 0, 0, 1, iABC) /* OP_VARARG */ |
| 105 | ,opmode(0, 0, 0, 0, 1, iABC) /* OP_GETVARG */ | 105 | ,opmode(0, 0, 0, 0, 1, iABC) /* OP_GETVARG */ |
| 106 | ,opmode(0, 0, 0, 0, 0, iABx) /* OP_ERRNNIL */ | 106 | ,opmode(0, 0, 0, 0, 0, iABx) /* OP_ERRNNIL */ |
| 107 | ,opmode(0, 0, 1, 0, 1, iABC) /* OP_VARARGPREP */ | 107 | ,opmode(0, 0, 1, 0, 0, iABC) /* OP_VARARGPREP */ |
| 108 | ,opmode(0, 0, 0, 0, 0, iAx) /* OP_EXTRAARG */ | 108 | ,opmode(0, 0, 0, 0, 0, iAx) /* OP_EXTRAARG */ |
| 109 | }; | 109 | }; |
| 110 | 110 | ||
| @@ -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 | ||
