Skip to content

Commit

Permalink
VM Dump: Fix formatting of userdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Aug 2, 2024
1 parent e6f6d1b commit 1ff2bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,8 @@ LUAI_FUNC int luaB_ipairsaux (lua_State *L);
str << "-";
switch (ttypetag(t)) {
case LUA_VLCF: str << cast_voidp(cast_sizet(fvalue(t))); break;
case LUA_VUSERDATA: str << getudatamem(uvalue(t)); break;
case LUA_VLIGHTUSERDATA: str << pvalue(t); break;
case LUA_VUSERDATA: str << cast_voidp(getudatamem(uvalue(t))); break;
case LUA_VLIGHTUSERDATA: str << cast_voidp(pvalue(t)); break;
default: str << gcvalue(t);
}

Expand Down

0 comments on commit 1ff2bae

Please sign in to comment.