mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
@@ -76,10 +76,7 @@ static void set_vector_metatable(lua_State *L)
|
||||
|
||||
void push_float_string(lua_State *L, float value)
|
||||
{
|
||||
std::stringstream ss;
|
||||
std::string str;
|
||||
ss << value;
|
||||
str = ss.str();
|
||||
auto str = ftos(value);
|
||||
lua_pushstring(L, str.c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user