Skip to content

Commit

Permalink
port-msc: some WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Jan 18, 2025
1 parent e6ad906 commit f9568f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/minitscript/src/minitscript/utilities/Integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ int Integer::viewParse(const string_view& str) {
if (trimmedStr.empty() == true) return 0;
if (trimmedStr == "-") return -0;
int result;
from_chars(trimmedStr.begin(), trimmedStr.end(), result);
#if defined(_MSC_VER)
from_chars(&trimmedStr[0], &trimmedStr[trimmedStr.size()], result);
#else
from_chars(trimmedStr.begin(), trimmedStr.end(), result);
#endif
return result;
}

Expand Down

0 comments on commit f9568f2

Please sign in to comment.