aboutsummaryrefslogtreecommitdiff
path: root/c/pl.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/pl.h')
-rw-r--r--c/pl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/pl.h b/c/pl.h
index 0a65c96..1c526a0 100644
--- a/c/pl.h
+++ b/c/pl.h
@@ -71,7 +71,7 @@ inline int PlGet(term_t t, wstring_owner* x) {
Mark m;
char* s;
if (!PlGet(t, &s)) return 0;
- *x = WsoFromSz(s);
+ *x = wstring_owner::from_narrow(s);
return 1; /* or catch potential exception from BstrFromSz? */
}