diff options
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 | ||
