fix(util/sexpr): Lua 5.1 incompatibility
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b956ce68d2
commit
a84107db3d
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ public:
|
|||
virtual void display(std::ostream & out) const {
|
||||
lua_State * L = m_ref.get_state();
|
||||
m_ref.push();
|
||||
out << luaL_tolstring(L, -1, nullptr);
|
||||
out << lua_tostring(L, -1);
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue