fix(util/sexpr): Lua 5.1 incompatibility

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-07 12:55:00 -07:00
parent b956ce68d2
commit a84107db3d

View file

@ -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);
}
};