aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/pl.cpp')
-rw-r--r--c/pl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/pl.cpp b/c/pl.cpp
index e0c7971..1dc22fb 100644
--- a/c/pl.cpp
+++ b/c/pl.cpp
@@ -94,7 +94,7 @@ wstring_owner PlString(const term_t t, const int flags)
{
char* s;
if (PL_get_chars(t, &s, flags))
- return {WsoFromSz(s)};
+ return {wstring_owner::from_narrow(s)};
else
return {};
}