fixes for export_term and friends.

This commit is contained in:
Vítor Santos Costa
2012-02-02 23:25:09 +00:00
parent c60514f89b
commit 6eea1fe1ea
4 changed files with 83 additions and 61 deletions

View File

@@ -1853,7 +1853,7 @@ PL_record_external
while(TRUE) {
if (!(s = Yap_AllocCodeSpace(len)))
return NULL;
if ((nsz = Yap_ExportTerm(t, s, len))) {
if ((nsz = Yap_ExportTerm(t, s, len, 0))) {
*sz = nsz;
return s;
} else {