aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lopcodes.c2
-rw-r--r--lutf8lib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 7e182315..c4828bfc 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -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
diff --git a/lutf8lib.c b/lutf8lib.c
index 73f0e49b..0cd7f9c3 100644
--- a/lutf8lib.c
+++ b/lutf8lib.c
@@ -149,7 +149,7 @@ static int codepoint (lua_State *L) {
149static void pushutfchar (lua_State *L, int arg) { 149static 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