mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-17 01:25:25 +00:00
Revert "wlan-ap: fix ubus-lua when use INT64 in lua"
This reverts commit 43ba72a798.
This commit is contained in:
parent
cd9ad4e610
commit
c8a2864521
@ -1,19 +0,0 @@
|
||||
Index: ubus-2021-08-09-a72457b6/lua/ubus.c
|
||||
===================================================================
|
||||
--- ubus-2021-08-09-a72457b6.orig/lua/ubus.c
|
||||
+++ ubus-2021-08-09-a72457b6/lua/ubus.c
|
||||
@@ -393,12 +393,10 @@ static int ubus_lua_load_methods(lua_Sta
|
||||
int pidx = 0;
|
||||
|
||||
/* get the function pointer */
|
||||
- lua_pushinteger(L, 1);
|
||||
- lua_gettable(L, -2);
|
||||
+ lua_rawgeti(L, -1, 1);
|
||||
|
||||
/* get the policy table */
|
||||
- lua_pushinteger(L, 2);
|
||||
- lua_gettable(L, -3);
|
||||
+ lua_rawgeti(L, -2, 2);
|
||||
|
||||
/* check if the method table is valid */
|
||||
if ((lua_type(L, -2) != LUA_TFUNCTION) ||
|
||||
Loading…
Reference in New Issue
Block a user