Skip to content

Commit f10ecdf

Browse files
committed
Corrected dump-json of proxies
1 parent deb7938 commit f10ecdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dumper.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ static void lmn_dump_atom_json(LmnSAtom atom)
11231123
fprintf(stdout, "\"links\":[");
11241124
{
11251125
BOOL needs_comma = FALSE;
1126-
for(i = 0, arity = LMN_SATOM_GET_ARITY(atom); i < arity; i++) {
1126+
for(i = 0, arity = LMN_SATOM_GET_LINK_NUM(atom); i < arity; i++) {
11271127
if (needs_comma) fprintf(stdout, ",");
11281128
needs_comma = TRUE;
11291129
lmn_dump_link_json(atom, i);
@@ -1138,7 +1138,6 @@ static void lmn_dump_mem_json(LmnMembrane *mem)
11381138
if (!mem) return;
11391139

11401140
fprintf(stdout, "{");
1141-
11421141
fprintf(stdout, "\"id\":%d,", (int)lmn_mem_id(mem));
11431142
fprintf(stdout, "\"name\":\"%s\",", LMN_MEM_NAME(mem));
11441143
fprintf(stdout, "\"atoms\":[");

0 commit comments

Comments
 (0)