From: SourceForge.net <no...@so...> - 2009-10-27 15:41:56
|
Bugs item #2887254, was opened at 2009-10-27 15:41 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2887254&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: lua Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Mark Gossage (mgossage) Summary: SWIG_Lua_typename uses the wrong stack index Initial Comment: The SWIG generated function "SWIG_Lua_typename" is using the wrong stack index when retrieving userdata from the Lua runtime. The following line (luarun.swg ~line 669) attempts to convert index 1 to a userdata. usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ This will only work if the requested object is on top of the stack. Since you pass in the index, this should read: usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2887254&group_id=1645 |