aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/pl.cpp')
-rw-r--r--c/pl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/pl.cpp b/c/pl.cpp
index 0114454..6e71383 100644
--- a/c/pl.cpp
+++ b/c/pl.cpp
@@ -78,10 +78,10 @@ int Query::NextSolution()
}
/* Convert Prolog term to wide characters. */
-int PlString(const term_t t, std::wstring* const pWstr, const int iFlags)
+int PlString(const term_t t, std::wstring* const pWs, const int iFlags)
{
char* sz;
int r = PL_get_chars(t, &sz, iFlags);
- if (r) *pWstr = WstrFromSz(sz);
+ if (r) *pWs = WsFromSz(sz);
return r;
}