Diff from new maintainer lucas at sexy dot is thank you very much for your work some help from sthen@ and semarie@ regarding @sample in PLIST
20 lines
461 B
Plaintext
20 lines
461 B
Plaintext
$OpenBSD: patch-util-src_table_c,v 1.2 2020/03/15 19:04:25 solene Exp $
|
|
|
|
Index: util-src/table.c
|
|
--- util-src/table.c.orig
|
|
+++ util-src/table.c
|
|
@@ -8,10 +8,12 @@ static int Lcreate_table(lua_State *L) {
|
|
|
|
static int Lpack(lua_State *L) {
|
|
unsigned int n_args = lua_gettop(L);
|
|
+ int arg;
|
|
+
|
|
lua_createtable(L, n_args, 1);
|
|
lua_insert(L, 1);
|
|
|
|
- for(int arg = n_args; arg >= 1; arg--) {
|
|
+ for(arg = n_args; arg >= 1; arg--) {
|
|
lua_rawseti(L, 1, arg);
|
|
}
|
|
|