Skip to content

Commit 8a16921

Browse files
authored
Merge pull request #3078 from compnerd/portable-toi
2 parents 26e62ed + b979359 commit 8a16921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Reflection/MetadataSource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MetadataSource {
5656
if (natural.empty())
5757
return false;
5858

59-
result = std::stoi(natural);
59+
result = std::atoi(natural.c_str());
6060
return true;
6161
}
6262

0 commit comments

Comments
 (0)