mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
@@ -537,11 +537,8 @@ float Settings::getFloat(const std::string &name) const
|
||||
|
||||
u64 Settings::getU64(const std::string &name) const
|
||||
{
|
||||
u64 value = 0;
|
||||
std::string s = get(name);
|
||||
std::istringstream ss(s);
|
||||
ss >> value;
|
||||
return value;
|
||||
return from_string<u64>(s);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user