summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp
index 5490294ca..851c70073 100644
--- a/source/core/slang-io.cpp
+++ b/source/core/slang-io.cpp
@@ -752,7 +752,7 @@ String Path::getRelativePath(String base, String path)
auto result = std::filesystem::relative(p2, p1, ec);
if (ec)
return path;
- return String(UnownedStringSlice(result.generic_u8string().c_str()));
+ return String(reinterpret_cast<const char*>(result.generic_u8string().c_str()));
}
SlangResult Path::remove(const String& path)