From 94de356834be40b1e14c85a016a2e0a9f1768053 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 11 Jul 2010 08:28:49 +0200 Subject: Added support for parsing strings to complex terms --- src/Pid.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Pid.vala') diff --git a/src/Pid.vala b/src/Pid.vala index 3f71df7..68f9a4f 100644 --- a/src/Pid.vala +++ b/src/Pid.vala @@ -6,7 +6,7 @@ namespace Eva { public uint creation {get; construct;} public Pid(Erl.Pid pid) { - this.create(array_to_string(pid.node, Erl.MAXATOMLEN), pid.num, pid.serial, pid.creation); + this.create(binary_to_string(pid.node, Erl.MAXATOMLEN), pid.num, pid.serial, pid.creation); } private Pid.create(string node0, uint num0, uint serial0, uint creation0) { @@ -32,7 +32,7 @@ namespace Eva { public void encode(Erl.Buffer buffer) { Erl.Pid pid = Erl.Pid(); - char[]? nodedata = string_to_array(node); + char[]? nodedata = string_to_binary(node); assert(nodedata != null); Memory.copy(pid.node, nodedata, int.min(Erl.MAXATOMLEN, nodedata.length)); -- cgit v1.2.3