summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index b539d87..c777e14 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -778,7 +778,7 @@ static inline size_t auxL_liblen(const auxL_Reg *l) {
778 lua_createtable((L), 0, countof((l)) - 1) 778 lua_createtable((L), 0, countof((l)) - 1)
779 779
780#define auxL_newlib(L, l, nups) \ 780#define auxL_newlib(L, l, nups) \
781 (auxL_newlibtable((L), (l)), auxL_setfuncs((L), (l), (nups))) 781 (auxL_newlibtable((L), (l)), lua_insert((L), -(nups + 1)), auxL_setfuncs((L), (l), (nups)))
782 782
783static void auxL_setfuncs(lua_State *L, const auxL_Reg *l, int nups) { 783static void auxL_setfuncs(lua_State *L, const auxL_Reg *l, int nups) {
784 for (; l->name; l++) { 784 for (; l->name; l++) {