From df079b2a54a7516de04894af2ccdf983429c7a81 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 29 Jul 2009 17:47:15 +0200 Subject: [PATCH] luaa: fix idx not used Signed-off-by: Julien Danjou --- luaa.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/luaa.h b/luaa.h index 79fd89a2..e6ef709f 100644 --- a/luaa.h +++ b/luaa.h @@ -221,12 +221,12 @@ luaA_getopt_padding(lua_State *L, int idx, padding_t *dpadding) { padding_t padding; - luaA_checktable(L, 2); + luaA_checktable(L, idx); - padding.right = luaA_getopt_number(L, 2, "right", dpadding->right); - padding.left = luaA_getopt_number(L, 2, "left", dpadding->left); - padding.top = luaA_getopt_number(L, 2, "top", dpadding->top); - padding.bottom = luaA_getopt_number(L, 2, "bottom", dpadding->bottom); + padding.right = luaA_getopt_number(L, idx, "right", dpadding->right); + padding.left = luaA_getopt_number(L, idx, "left", dpadding->left); + padding.top = luaA_getopt_number(L, idx, "top", dpadding->top); + padding.bottom = luaA_getopt_number(L, idx, "bottom", dpadding->bottom); return padding; }