mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixed previous commit for Linux/OSX
This commit is contained in:
@@ -977,7 +977,9 @@ template<typename T>
|
|||||||
{
|
{
|
||||||
// Legacy conversion, which is costly due to having to make a copy of the string before conversion.
|
// Legacy conversion, which is costly due to having to make a copy of the string before conversion.
|
||||||
try {
|
try {
|
||||||
std::string str { str };
|
assert(sv.size() < 1024);
|
||||||
|
assert(sv.data() != nullptr);
|
||||||
|
std::string str { sv };
|
||||||
size_t read = 0;
|
size_t read = 0;
|
||||||
if constexpr (std::is_same_v<T, int>)
|
if constexpr (std::is_same_v<T, int>)
|
||||||
out = std::stoi(str, &read);
|
out = std::stoi(str, &read);
|
||||||
|
|||||||
Reference in New Issue
Block a user