Skip to content

Commit

Permalink
* 修复5.4.6报错 memory_leak_checker.c(153,4): error C2440: 'initializing'… (
Browse files Browse the repository at this point in the history
#1085)

* * 修复5.4.6报错 memory_leak_checker.c(153,4): error C2440: 'initializing': cannot convert from 'StkIdRel' to 'TValue *'

* * 修复5.4.6报错 memory_leak_checker.c(153,4) 兼容5.4.1
  • Loading branch information
liuyi13-cpu committed Aug 30, 2023
1 parent ad3733c commit 4d01bb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/memory_leak_checker.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ LUA_API void xlua_report_object_relationship(lua_State *L, ObjectRelationshipRep
{
LClosure *cl = gco2lcl(p);
lua_lock(L);
#if LUA_VERSION_NUM >= 504 && LUA_VERSION_RELEASE_NUM >= 50406
setclLvalue2s(L, L->top.p, cl);
#else
setclLvalue(L, L->top, cl);
#endif
api_incr_top(L);
lua_unlock(L);

Expand Down

0 comments on commit 4d01bb2

Please sign in to comment.